From fb0ed72caaf7cce0421008f1cddab1dbd4362214 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Mon, 28 Aug 2006 01:48:04 +0000 Subject: r17862: Fix possible NULL deref (like rev 17861) found by the Stanford group. Jeremy. (This used to be commit cfd39c2804df3f67637adf223542daa208c893c7) --- source3/lib/util_str.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source3/lib/util_str.c') diff --git a/source3/lib/util_str.c b/source3/lib/util_str.c index 6677d075bd..2b647b0641 100644 --- a/source3/lib/util_str.c +++ b/source3/lib/util_str.c @@ -2284,7 +2284,9 @@ SMB_BIG_UINT STR_TO_SMB_BIG_UINT(const char *nptr, const char **entptr) const char *p = nptr; if (!p) { - *entptr = p; + if (entptr) { + *entptr = p; + } return val; } -- cgit