mirror of
https://github.com/samba-team/samba.git
synced 2025-12-12 12:23:50 +03:00
r17862: Fix possible NULL deref (like rev 17861) found by the
Stanford group. Jeremy.
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
1cb379315a
commit
cfd39c2804
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user