mirror of
https://github.com/samba-team/samba.git
synced 2025-02-26 21:57:41 +03:00
s3/rpc_server/srvsvc/srv_srvsvc_nt.c: change snum to signed int
snum is used to store the result of the find_service() call which returns a signed int, with -1 being an error. with an uint32_t the error check (< 0) is always false. Signed-off-by: Aurelien Aptel <aaptel@suse.com> Reviewed-by: Volker Lendecke <Volker.Lendecke@SerNet.DE> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
2285519043
commit
85e414aefc
@ -1125,7 +1125,8 @@ static WERROR init_srv_conn_info_1(const char *name,
|
||||
uint32_t *resume_handle_p,
|
||||
uint32_t *total_entries)
|
||||
{
|
||||
uint32_t num_entries = 0, snum = 0;
|
||||
uint32_t num_entries = 0;
|
||||
int snum = 0;
|
||||
uint32_t resume_handle = resume_handle_p ? *resume_handle_p : 0;
|
||||
char *share_name = NULL;
|
||||
struct server_id *svrid_arr = NULL;
|
||||
|
Loading…
x
Reference in New Issue
Block a user