diff options
Diffstat (limited to 'source3')
-rw-r--r-- | source3/smbd/sec_ctx.c | 4 | ||||
-rw-r--r-- | source3/utils/nmblookup.c | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/source3/smbd/sec_ctx.c b/source3/smbd/sec_ctx.c index f6563ffe96..6f98e9df6b 100644 --- a/source3/smbd/sec_ctx.c +++ b/source3/smbd/sec_ctx.c @@ -152,8 +152,10 @@ int get_current_groups(int *p_ngroups, gid_t **p_groups) return -1; } - if ((ngroups = sys_getgroups(ngroups,groups)) == -1) + if ((ngroups = sys_getgroups(ngroups,groups)) == -1) { + safe_free(groups); return -1; + } (*p_ngroups) = ngroups; (*p_groups) = groups; diff --git a/source3/utils/nmblookup.c b/source3/utils/nmblookup.c index 4e85f6ac45..0f978a6cf3 100644 --- a/source3/utils/nmblookup.c +++ b/source3/utils/nmblookup.c @@ -118,7 +118,7 @@ static void do_node_status(int fd, char *name, int type, struct in_addr ip) for (i=0;i<count;i++) { fstrcpy(cleanname, status[i].name); for (j=0;cleanname[j];j++) { - if (!isprint(cleanname[j])) cleanname[j] = '.'; + if (!isprint((int)cleanname[j])) cleanname[j] = '.'; } printf("\t%-15s <%02x> - %s\n", cleanname,status[i].type, |