1
0
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:
Michael Adam 2011-07-21 14:10:50 +02:00
parent 2568a8b463
commit fc525c8a25

View File

@ -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];