diff options
-rw-r--r-- | source3/param/loadparm.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c index 8a8123ed18..f88361f7ab 100644 --- a/source3/param/loadparm.c +++ b/source3/param/loadparm.c @@ -2489,9 +2489,9 @@ BOOL lp_winbind_gid(gid_t *low, gid_t *high) static BOOL handle_winbind_uid(char *pszParmValue, char **ptr) { - int low, high; + uint32 low, high; - if (sscanf(pszParmValue, "%d-%d", &low, &high) != 2 || high < low) + if (sscanf(pszParmValue, "%u-%u", &low, &high) != 2 || high < low) return False; /* Parse OK */ @@ -2506,9 +2506,9 @@ static BOOL handle_winbind_uid(char *pszParmValue, char **ptr) static BOOL handle_winbind_gid(char *pszParmValue, char **ptr) { - gid_t low, high; + uint32 low, high; - if (sscanf(pszParmValue, "%d-%d", &low, &high) != 2 || high < low) + if (sscanf(pszParmValue, "%u-%u", &low, &high) != 2 || high < low) return False; /* Parse OK */ |