From 58989d37a8ce50e04452cdab47b897765a7e7d4e Mon Sep 17 00:00:00 2001 From: Ezra Peisach Date: Sat, 6 Jun 2009 03:55:44 +0000 Subject: [PATCH] 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 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22402 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/kadm5/srv/server_acl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/kadm5/srv/server_acl.c b/src/lib/kadm5/srv/server_acl.c index 88a517a00..76220446d 100644 --- a/src/lib/kadm5/srv/server_acl.c +++ b/src/lib/kadm5/srv/server_acl.c @@ -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; -- 2.26.2