mirror of
https://github.com/samba-team/samba.git
synced 2025-08-03 04:22:09 +03:00
s3: Fix a bogus if (client_len < 0)
On some platforms socklen_t might be unsigned, so comparing for <0 always returns true. Also, tsocket_address_bsd_sockaddr returns ssize_t. Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Sat Mar 3 23:38:31 CET 2012 on sn-devel-104
This commit is contained in:
@ -2677,7 +2677,7 @@ WERROR _spoolss_RemoteFindFirstPrinterChangeNotifyEx(struct pipes_struct *p,
|
||||
int snum = -1;
|
||||
struct spoolss_NotifyOption *option = r->in.notify_options;
|
||||
struct sockaddr_storage client_ss;
|
||||
socklen_t client_len;
|
||||
ssize_t client_len;
|
||||
|
||||
/* store the notify value in the printer struct */
|
||||
|
||||
|
Reference in New Issue
Block a user