svn rev #22046: trunk/src/kdc/
tsitkova@MIT.EDU
tsitkova at MIT.EDU
Mon Feb 23 13:47:29 EST 2009
http://src.mit.edu/fisheye/changelog/krb5/?cs=22046
Commit By: tsitkova
Log Message:
Correct the return code.
Changed Files:
U trunk/src/kdc/do_tgs_req.c
Modified: trunk/src/kdc/do_tgs_req.c
===================================================================
--- trunk/src/kdc/do_tgs_req.c 2009-02-23 18:28:48 UTC (rev 22045)
+++ trunk/src/kdc/do_tgs_req.c 2009-02-23 18:47:28 UTC (rev 22046)
@@ -1125,11 +1125,13 @@
}
if (realms == 0) {
printf(" (null)\n");
+ retval = KRB5KRB_AP_ERR_BADMATCH;
goto cleanup;
}
if (realms[0] == 0) {
printf(" (none)\n");
free(realms);
+ retval = KRB5KRB_AP_ERR_BADMATCH;
goto cleanup;
}
/* Modify request.
@@ -1140,7 +1142,6 @@
(*request->server).realm.length,
(*request->server).realm.data,
"krbtgt", realms[0], (char *)0);
-
for (cpp = realms; *cpp; cpp++)
free(*cpp);
}
More information about the cvs-krb5
mailing list