summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2005-10-03 23:39:59 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:39:20 -0500
commit1a3651693517332c0c15111b871c65f2411a35ae (patch)
tree28d8e165a10aa8e15c9076c04a6ac48ed542c453
parentf9a416743401121e1bc2961402cd6f87de68ca00 (diff)
downloadsamba-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)
-rw-r--r--source4/lib/util_str.c4
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 */