diff options
Diffstat (limited to 'source3/torture')
-rw-r--r-- | source3/torture/nsstest.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/source3/torture/nsstest.c b/source3/torture/nsstest.c index 585a592bdc..d2b17f0f63 100644 --- a/source3/torture/nsstest.c +++ b/source3/torture/nsstest.c @@ -174,6 +174,9 @@ again: if (status == NSS_STATUS_TRYAGAIN) { buflen *= 2; buf = SMB_REALLOC(buf, buflen); + if (!buf) { + return NULL; + } goto again; } if (status == NSS_STATUS_NOTFOUND) { @@ -205,6 +208,9 @@ again: if (status == NSS_STATUS_TRYAGAIN) { buflen *= 2; buf = SMB_REALLOC(buf, buflen); + if (!buf) { + return NULL; + } goto again; } if (status == NSS_STATUS_NOTFOUND) { @@ -237,6 +243,9 @@ again: if (status == NSS_STATUS_TRYAGAIN) { buflen *= 2; buf = SMB_REALLOC(buf, buflen); + if (!buf) { + return NULL; + } goto again; } if (status == NSS_STATUS_NOTFOUND) { |