summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2002-07-04 08:39:06 +0000
committerAndrew Bartlett <abartlet@samba.org>2002-07-04 08:39:06 +0000
commitba89facada71d90cd5688e02fdf5a501ac7d55cf (patch)
treebeb71513ddba4a4faa7fa272713d2f81a5e58765 /source3
parentbc418dbbc0a8c342335aa24cb58e18c0f8b48cfa (diff)
downloadsamba-ba89facada71d90cd5688e02fdf5a501ac7d55cf.tar.gz
samba-ba89facada71d90cd5688e02fdf5a501ac7d55cf.tar.bz2
samba-ba89facada71d90cd5688e02fdf5a501ac7d55cf.zip
Always free_conn() after all the DEBUG()s etc.
(This used to be commit 06529c0433bf75790aad27dd3cecf7005612c694)
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/service.c6
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 */