mirror of
https://github.com/samba-team/samba.git
synced 2025-01-13 13:18:06 +03:00
s3:loadparm: fix a check that was accidentially an assignment in lp_servicebynum()
This commit is contained in:
parent
2568a8b463
commit
fc525c8a25
@ -6421,7 +6421,7 @@ struct loadparm_service *lp_service(const char *pszServiceName)
|
||||
|
||||
struct loadparm_service *lp_servicebynum(int snum)
|
||||
{
|
||||
if (snum = -1 || !LP_SNUM_OK(snum)) {
|
||||
if ((snum == -1) || !LP_SNUM_OK(snum)) {
|
||||
return NULL;
|
||||
}
|
||||
return ServicePtrs[snum];
|
||||
|
Loading…
Reference in New Issue
Block a user