summaryrefslogtreecommitdiffstats
path: root/source/smbd/service.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/smbd/service.c')
-rw-r--r--source/smbd/service.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/smbd/service.c b/source/smbd/service.c
index 19bdc0e4b02..df930575d30 100644
--- a/source/smbd/service.c
+++ b/source/smbd/service.c
@@ -723,7 +723,7 @@ connection_struct *make_connection_with_chdir(const char *service_in, DATA_BLOB
* so we have to do it as a separate step --jerry
*/
- if (vfs_ChDir(conn,conn->connectpath) != 0) {
+ if ( conn && vfs_ChDir(conn,conn->connectpath) != 0 ) {
DEBUG(0,("move_driver_to_download_area: Can't change directory to %s for [print$] (%s)\n",
conn->connectpath,strerror(errno)));
yield_connection(conn, lp_servicename(SNUM(conn)));