projects
/
krb5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9d4a7b7
)
kadm5int_acl_parse_restrictions could ref uninitialized variable
author
Ezra Peisach
<epeisach@mit.edu>
Sat, 6 Jun 2009 03:55:44 +0000
(
03:55
+0000)
committer
Ezra Peisach
<epeisach@mit.edu>
Sat, 6 Jun 2009 03:55:44 +0000
(
03:55
+0000)
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
patch
|
blob
|
history
diff --git
a/src/lib/kadm5/srv/server_acl.c
b/src/lib/kadm5/srv/server_acl.c
index 88a517a00d9026c1a222804d958cdf05bea19363..76220446d3cb0911b4838e4c1e2ac4140162eb2a 100644
(file)
--- 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;