diff options
Diffstat (limited to 'source3/auth/auth_util.c')
-rw-r--r-- | source3/auth/auth_util.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source3/auth/auth_util.c b/source3/auth/auth_util.c index 408b26f514..7d6a5ff8c9 100644 --- a/source3/auth/auth_util.c +++ b/source3/auth/auth_util.c @@ -703,6 +703,14 @@ static NTSTATUS make_server_info(auth_serversupplied_info **server_info) return NT_STATUS_NO_MEMORY; } ZERO_STRUCTP(*server_info); + + /* Initialise the uid and gid values to something non-zero + which may save us from giving away root access if there + is a bug in allocating these fields. */ + + (*server_info)->uid = -1; + (*server_info)->gid = -1; + return NT_STATUS_OK; } |