diff options
Diffstat (limited to 'source4/lib/util_str.c')
-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 */ |