svn rev #24097: trunk/src/kdc/

ghudson@MIT.EDU ghudson at MIT.EDU
Sun May 23 23:14:57 EDT 2010


http://src.mit.edu/fisheye/changelog/krb5/?cs=24097
Commit By: ghudson
Log Message:
Don't include nul characters in the text we send with krb-error
responses from the KDC.



Changed Files:
U   trunk/src/kdc/do_as_req.c
U   trunk/src/kdc/do_tgs_req.c
Modified: trunk/src/kdc/do_as_req.c
===================================================================
--- trunk/src/kdc/do_as_req.c	2010-05-23 23:23:07 UTC (rev 24096)
+++ trunk/src/kdc/do_as_req.c	2010-05-24 03:14:57 UTC (rev 24097)
@@ -750,7 +750,7 @@
         errpkt.client = canon_client;
     else
         errpkt.client = request->client;
-    errpkt.text.length = strlen(status) + 1;
+    errpkt.text.length = strlen(status);
     if (!(errpkt.text.data = strdup(status)))
         return ENOMEM;
 

Modified: trunk/src/kdc/do_tgs_req.c
===================================================================
--- trunk/src/kdc/do_tgs_req.c	2010-05-23 23:23:07 UTC (rev 24096)
+++ trunk/src/kdc/do_tgs_req.c	2010-05-24 03:14:57 UTC (rev 24097)
@@ -1078,7 +1078,7 @@
         errpkt.client = ticket->enc_part2->client;
     else
         errpkt.client = NULL;
-    errpkt.text.length = strlen(status) + 1;
+    errpkt.text.length = strlen(status);
     if (!(errpkt.text.data = strdup(status)))
         return ENOMEM;
 




More information about the cvs-krb5 mailing list