summaryrefslogtreecommitdiff
path: root/source3/param/loadparm.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/param/loadparm.c')
-rw-r--r--source3/param/loadparm.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c
index aee8349dbd..85caf20712 100644
--- a/source3/param/loadparm.c
+++ b/source3/param/loadparm.c
@@ -7391,6 +7391,21 @@ bool lp_do_parameter(int snum, const char *pszParmName, const char *pszParmValue
}
break;
+ case P_BYTES:
+ {
+ uint64_t val;
+ if (conv_str_size_error(pszParmValue, &val)) {
+ if (val <= INT_MAX) {
+ *(int *)parm_ptr = (int)val;
+ break;
+ }
+ }
+
+ DEBUG(0,("lp_do_parameter(%s): value is not "
+ "a valid size specifier!\n", pszParmValue));
+ return false;
+ }
+
case P_LIST:
case P_CMDLIST:
TALLOC_FREE(*((char ***)parm_ptr));