From: Michael Adam Date: Thu, 19 Jun 2008 15:21:04 +0000 (+0200) Subject: loadparm: use the return value of the special handlers in lp_load(). X-Git-Tag: samba-3.3.0pre1~839 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c65d425fec964bc0b8778b596615a8bcce0378aa;p=thirdparty%2Fsamba.git loadparm: use the return value of the special handlers in lp_load(). Up to now, the bool return value was silently ignored. Michael --- diff --git a/source/param/loadparm.c b/source/param/loadparm.c index ad0605d70b2..8f6af683256 100644 --- a/source/param/loadparm.c +++ b/source/param/loadparm.c @@ -7208,8 +7208,8 @@ bool lp_do_parameter(int snum, const char *pszParmName, const char *pszParmValue /* if it is a special case then go ahead */ if (parm_table[parmnum].special) { - parm_table[parmnum].special(snum, pszParmValue, (char **)parm_ptr); - return (True); + return parm_table[parmnum].special(snum, pszParmValue, + (char **)parm_ptr); } /* now switch on the type of variable it is */