loadparm: use the return value of the special handlers in lp_load().
authorMichael Adam <obnox@samba.org>
Thu, 19 Jun 2008 15:21:04 +0000 (17:21 +0200)
committerMichael Adam <obnox@samba.org>
Thu, 19 Jun 2008 15:22:27 +0000 (17:22 +0200)
Up to now, the bool return value was silently ignored.

Michael
(This used to be commit c65d425fec964bc0b8778b596615a8bcce0378aa)

source3/param/loadparm.c

index ad0605d70b2793bf92828ea807fe7bc4fb98d716..8f6af683256e1f8b3307b45c9d7ec4a21b2e501c 100644 (file)
@@ -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 */