svn rev #22402: trunk/src/lib/kadm5/srv/

epeisach@MIT.EDU epeisach at MIT.EDU
Fri Jun 5 23:55:46 EDT 2009


http://src.mit.edu/fisheye/changelog/krb5/?cs=22402
Commit By: epeisach
Log Message:
ticket: 6508
subject: kadm5int_acl_parse_restrictions could ref uninitialized variable

The variable sp is never initialized. If the first argument to the
function is null, the code falls through to freeing sp if valid.
However, sp is never set.




Changed Files:
U   trunk/src/lib/kadm5/srv/server_acl.c
Modified: trunk/src/lib/kadm5/srv/server_acl.c
===================================================================
--- trunk/src/lib/kadm5/srv/server_acl.c	2009-06-02 01:04:20 UTC (rev 22401)
+++ trunk/src/lib/kadm5/srv/server_acl.c	2009-06-06 03:55:44 UTC (rev 22402)
@@ -278,7 +278,7 @@
     char		*s;
     restriction_t	**rpp;
 {
-    char		*sp, *tp, *ap;
+    char		*sp = NULL, *tp, *ap;
     static const char	*delims = "\t\n\f\v\r ,";
     krb5_deltat		dt;
     krb5_flags		flag;




More information about the cvs-krb5 mailing list