mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
r2435: got rid of another pointless strnequal()
(This used to be commit 1b4cee825e
)
This commit is contained in:
parent
677d1bc487
commit
421c0d2a18
@ -966,7 +966,7 @@ static WERROR spoolss_OpenPrinterEx(struct dcesrv_call_state *dce_call, TALLOC_C
|
||||
|
||||
/* Printername must start with \\ */
|
||||
|
||||
if (!strnequal(r->in.printername, "\\\\", 2))
|
||||
if (strncmp(r->in.printername, "\\\\", 2) == 0)
|
||||
return WERR_INVALID_PARAM;
|
||||
|
||||
if (strchr_m(r->in.printername + 2, '\\'))
|
||||
|
Loading…
Reference in New Issue
Block a user