diff options
| author | Tom Yu <tlyu@mit.edu> | 2002-08-02 00:38:22 +0000 |
|---|---|---|
| committer | Tom Yu <tlyu@mit.edu> | 2002-08-02 00:38:22 +0000 |
| commit | c360d766253d88e52891e5aaf8ee0cc2f4fc2a08 (patch) | |
| tree | f4920612dd781a2232c0353bcd51dca19559f1c7 /src | |
| parent | d1fb00973c32e51a9697f64c97d2d22c757b1f47 (diff) | |
| download | krb5-c360d766253d88e52891e5aaf8ee0cc2f4fc2a08.tar.gz krb5-c360d766253d88e52891e5aaf8ee0cc2f4fc2a08.tar.xz krb5-c360d766253d88e52891e5aaf8ee0cc2f4fc2a08.zip | |
* unparse.c (krb5_unparse_name_ext): Error out if passed a NULL
pointer. Patch from Mark Levinson; fixes [krb5-admin/1140].
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14679 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/krb5/krb/ChangeLog | 5 | ||||
| -rw-r--r-- | src/lib/krb5/krb/unparse.c | 3 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/lib/krb5/krb/ChangeLog b/src/lib/krb5/krb/ChangeLog index 0406fc87f..c650e9e98 100644 --- a/src/lib/krb5/krb/ChangeLog +++ b/src/lib/krb5/krb/ChangeLog @@ -1,3 +1,8 @@ +2002-08-01 Tom Yu <tlyu@mit.edu> + + * unparse.c (krb5_unparse_name_ext): Error out if passed a NULL + pointer. Patch from Mark Levinson; fixes [krb5-admin/1140]. + 2002-06-26 Ezra Peisach <epeisach@bu.edu> * appdefault.c (conf_boolean): Change variable from char ** to diff --git a/src/lib/krb5/krb/unparse.c b/src/lib/krb5/krb/unparse.c index 12755d924..f24d46808 100644 --- a/src/lib/krb5/krb/unparse.c +++ b/src/lib/krb5/krb/unparse.c @@ -70,6 +70,9 @@ krb5_unparse_name_ext(context, principal, name, size) krb5_int32 nelem; register unsigned int totalsize = 0; + if (!principal) + return KRB5_PARSE_MALFORMED; + cp = krb5_princ_realm(context, principal)->data; length = krb5_princ_realm(context, principal)->length; totalsize += length; |
