(spnego_initial): catch errors and return them

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12806 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2003-09-09 23:44:25 +00:00
parent d28e2d0ebc
commit bb22f358b1
2 changed files with 14 additions and 2 deletions

View File

@@ -851,6 +851,10 @@ spnego_initial
&mech_token,
ret_flags,
time_rec);
if (GSS_ERROR(sub)) {
free_NegTokenInit(&ni);
return sub;
}
if (mech_token.length != 0) {
ALLOC(ni.mechToken, 1);
if (ni.mechToken == NULL) {
@@ -861,7 +865,9 @@ spnego_initial
}
ni.mechToken->length = mech_token.length;
ni.mechToken->data = mech_token.value;
}
} else
ni.mechToken = NULL;
/* XXX ignore mech list mic for now */
ni.mechListMIC = NULL;

View File

@@ -851,6 +851,10 @@ spnego_initial
&mech_token,
ret_flags,
time_rec);
if (GSS_ERROR(sub)) {
free_NegTokenInit(&ni);
return sub;
}
if (mech_token.length != 0) {
ALLOC(ni.mechToken, 1);
if (ni.mechToken == NULL) {
@@ -861,7 +865,9 @@ spnego_initial
}
ni.mechToken->length = mech_token.length;
ni.mechToken->data = mech_token.value;
}
} else
ni.mechToken = NULL;
/* XXX ignore mech list mic for now */
ni.mechListMIC = NULL;