fixing authdestroy called twice for non-existing target names

This commit is contained in:
Olga Kornievskaia 2011-04-01 18:25:04 -04:00 committed by unknown
parent 36ea0af8e7
commit a67636605c

View file

@ -122,10 +122,8 @@ authsspi_create(CLIENT *clnt, sspi_name_t name, struct rpc_sspi_sec *sec)
save_auth = clnt->cl_auth; save_auth = clnt->cl_auth;
clnt->cl_auth = auth; clnt->cl_auth = auth;
if (!authsspi_refresh(auth, NULL)) { if (!authsspi_refresh(auth, NULL))
authsspi_destroy(auth);
auth = NULL; auth = NULL;
}
clnt->cl_auth = save_auth; clnt->cl_auth = save_auth;
@ -513,7 +511,7 @@ authsspi_refresh(AUTH *auth, void *tmp)
gd->established = FALSE; gd->established = FALSE;
authsspi_destroy_context(auth); authsspi_destroy_context(auth);
} }
return (FALSE); break;
} }
gd->established = TRUE; gd->established = TRUE;
gd->gc.gc_proc = RPCSEC_SSPI_DATA; gd->gc.gc_proc = RPCSEC_SSPI_DATA;