diff options
Diffstat (limited to 'source3')
-rw-r--r-- | source3/smbd/service.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/smbd/service.c b/source3/smbd/service.c index 0fec7b24a9..222101faa0 100644 --- a/source3/smbd/service.c +++ b/source3/smbd/service.c @@ -455,9 +455,9 @@ static connection_struct *make_connection_snum(int snum, user_struct *vuser, conn->force_user = True; DEBUG(3,("Forced user %s\n",user)); } else { - conn_free(conn); DEBUG(1,("Couldn't find user %s\n",fuser)); *status = NT_STATUS_NO_SUCH_USER; + conn_free(conn); return NULL; } } @@ -508,9 +508,9 @@ static connection_struct *make_connection_snum(int snum, user_struct *vuser, DEBUG(3,("Forced group %s\n",gname)); } } else { - conn_free(conn); - *status = NT_STATUS_NO_SUCH_GROUP; DEBUG(1,("Couldn't find group %s\n",gname)); + *status = NT_STATUS_NO_SUCH_GROUP; + conn_free(conn); } } #endif /* HAVE_GETGRNAM */ |