diff options
author | Jeremy Allison <jra@samba.org> | 2010-09-09 15:29:03 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2010-09-09 15:29:03 -0700 |
commit | 718fd39f10310d10ebc2276021d97d48f1163a88 (patch) | |
tree | c3131e859fbf5186596e7f04284095dcde6215c9 /source3/lib/util_str.c | |
parent | e6b85c2a7b3cfa0dd3c9859c88e5462c616d5a2a (diff) | |
download | samba-718fd39f10310d10ebc2276021d97d48f1163a88.tar.gz samba-718fd39f10310d10ebc2276021d97d48f1163a88.tar.bz2 samba-718fd39f10310d10ebc2276021d97d48f1163a88.zip |
Fox missing SMB_MALLOC return checks noticed by "Andreas Moroder <andreas.moroder@gmx.net>".
Jeremy.
Diffstat (limited to 'source3/lib/util_str.c')
-rw-r--r-- | source3/lib/util_str.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/lib/util_str.c b/source3/lib/util_str.c index f93832e752..449b5d1a60 100644 --- a/source3/lib/util_str.c +++ b/source3/lib/util_str.c @@ -2067,6 +2067,9 @@ void string_append(char **left, const char *right) if (*left == NULL) { *left = (char *)SMB_MALLOC(new_len); + if (*left == NULL) { + return; + } *left[0] = '\0'; } else { new_len += strlen(*left); |