diff options
author | Garming Sam <garming@catalyst.net.nz> | 2014-02-26 11:21:35 +1300 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2014-05-07 19:49:17 +0200 |
commit | f4d090f1458778708a061e6bf5d8bf6362639e90 (patch) | |
tree | 4bc32dcae0073b4ebfeb4473f9a2a5ecd6805939 | |
parent | 994bb15a37eda2a0b2882438483d43997b389f6d (diff) | |
download | samba-f4d090f1458778708a061e6bf5d8bf6362639e90.tar.gz samba-f4d090f1458778708a061e6bf5d8bf6362639e90.tar.xz samba-f4d090f1458778708a061e6bf5d8bf6362639e90.zip |
param: correctly return false when parsing invalid octal in lp_do_parameter
Signed-off-by: Garming Sam <garming@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
-rw-r--r-- | source3/param/loadparm.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c index 844cfe903d..52dc57db40 100644 --- a/source3/param/loadparm.c +++ b/source3/param/loadparm.c @@ -2659,6 +2659,7 @@ bool lp_do_parameter(int snum, const char *pszParmName, const char *pszParmValue i = sscanf(pszParmValue, "%o", (int *)parm_ptr); if ( i != 1 ) { DEBUG ( 0, ("Invalid octal number %s\n", pszParmName )); + return false; } break; |