1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-26 21:57:41 +03:00

util: Fix a possible null pointer dereference

Found by cppcheck.

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Andreas Schneider 2016-06-22 09:17:07 +02:00 committed by Jeremy Allison
parent c0704d99ce
commit 8e88ab727a

View File

@ -40,6 +40,9 @@ static char *talloc_vasprintf_append_largebuf(char *buf, ssize_t *pstr_len,
if (buf == NULL) {
return NULL;
}
if (fmt == NULL) {
return NULL;
}
buflen = talloc_get_size(buf);
if (buflen > str_len) {