pull up r22402 from trunk
authorTom Yu <tlyu@mit.edu>
Mon, 28 Sep 2009 20:27:13 +0000 (20:27 +0000)
committerTom Yu <tlyu@mit.edu>
Mon, 28 Sep 2009 20:27:13 +0000 (20:27 +0000)
 ------------------------------------------------------------------------
 r22402 | epeisach | 2009-06-05 23:55:44 -0400 (Fri, 05 Jun 2009) | 7 lines

 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.

ticket: 6508
version_fixed: 1.7.1
status: resolved

git-svn-id: svn://anonsvn.mit.edu/krb5/branches/krb5-1-7@22796 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/kadm5/srv/server_acl.c

index 9471d0ac013314532543e5533efbe30eaec51ffe..ec6fd9dd3939837800da0ce5ca43954b5fdaf554 100644 (file)
@@ -278,7 +278,7 @@ kadm5int_acl_parse_restrictions(s, rpp)
     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;