r3220: merging current 3.0 code to release branch
[tprouty/samba.git] / source / libsmb / libsmbclient.c
index e44bdea2d3d3cb9eed50cc3e529f6c3252cf45be..2b0115eaaa46cb4897ac188ce32aae86fa50c0f0 100644 (file)
@@ -24,7 +24,7 @@
 
 #include "includes.h"
 
-#include "../include/libsmb_internal.h"
+#include "include/libsmb_internal.h"
 
 /*
  * Internal flags for extended attributes
@@ -596,6 +596,7 @@ SMBCSRV *smbc_server(SMBCCTX *context,
                  */
                 c.port = 445;
                 if (!cli_connect(&c, server_n, &ip)) {
+                       cli_shutdown(&c);
                         errno = ENETUNREACH;
                         return NULL;
                 }