diff options
author | Andrew Bartlett <abartlet@samba.org> | 2005-10-03 23:39:59 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:39:20 -0500 |
commit | 1a3651693517332c0c15111b871c65f2411a35ae (patch) | |
tree | 28d8e165a10aa8e15c9076c04a6ac48ed542c453 /source4 | |
parent | f9a416743401121e1bc2961402cd6f87de68ca00 (diff) | |
download | samba-1a3651693517332c0c15111b871c65f2411a35ae.tar.gz samba-1a3651693517332c0c15111b871c65f2411a35ae.tar.bz2 samba-1a3651693517332c0c15111b871c65f2411a35ae.zip |
r10695: strupper() of NULL should be NULL, not panic.
Andrew Bartlett
(This used to be commit b1bcc0dc0b3c6d4d931100dee21ba16cb5521978)
Diffstat (limited to 'source4')
-rw-r--r-- | source4/lib/util_str.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/lib/util_str.c b/source4/lib/util_str.c index 685cc52c65..ba952df9f6 100644 --- a/source4/lib/util_str.c +++ b/source4/lib/util_str.c @@ -705,6 +705,10 @@ char *strupper_talloc(TALLOC_CTX *ctx, const char *src) { size_t size=0; char *dest; + + if (!src) { + return NULL; + } /* this takes advantage of the fact that upper/lower can't change the length of a character by more than 1 byte */ |