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:
parent
c0704d99ce
commit
8e88ab727a
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user