mirror of
https://github.com/samba-team/samba.git
synced 2025-01-27 14:04:05 +03:00
s3-rpc_server: Fix a possible null pointer dereference.
This variable can be set to NULL in an earlier function call. Found by Coverity. Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Günther Deschner <gd@samba.org>
This commit is contained in:
parent
f0454ffb69
commit
72e02c73b6
@ -4428,7 +4428,8 @@ static WERROR enum_all_printers_info_1_name(TALLOC_CTX *mem_ctx,
|
||||
|
||||
DEBUG(4,("enum_all_printers_info_1_name\n"));
|
||||
|
||||
if ((servername[0] == '\\') && (servername[1] == '\\')) {
|
||||
if (servername != NULL &&
|
||||
(servername[0] == '\\') && (servername[1] == '\\')) {
|
||||
s = servername + 2;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user