From a67636605cb2dbb130d9207374a47edac5fcc591 Mon Sep 17 00:00:00 2001 From: Olga Kornievskaia Date: Fri, 1 Apr 2011 18:25:04 -0400 Subject: [PATCH] fixing authdestroy called twice for non-existing target names --- libtirpc/src/auth_sspi.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/libtirpc/src/auth_sspi.c b/libtirpc/src/auth_sspi.c index ad87cc3..3d21bdb 100644 --- a/libtirpc/src/auth_sspi.c +++ b/libtirpc/src/auth_sspi.c @@ -122,10 +122,8 @@ authsspi_create(CLIENT *clnt, sspi_name_t name, struct rpc_sspi_sec *sec) save_auth = clnt->cl_auth; clnt->cl_auth = auth; - if (!authsspi_refresh(auth, NULL)) { - authsspi_destroy(auth); + if (!authsspi_refresh(auth, NULL)) auth = NULL; - } clnt->cl_auth = save_auth; @@ -513,7 +511,7 @@ authsspi_refresh(AUTH *auth, void *tmp) gd->established = FALSE; authsspi_destroy_context(auth); } - return (FALSE); + break; } gd->established = TRUE; gd->gc.gc_proc = RPCSEC_SSPI_DATA;