s3-libsmbclient: Fix crash bug in SMBC_parse_path().
[ira/wip.git] / source3 / libsmb / libsmb_path.c
index 9d2eafc8d776b20948dcdef053e409ccf7138b24..64a956d9ee4ee25e2dbb8a6dd984dbf61a0a024a 100644 (file)
@@ -308,7 +308,7 @@ SMBC_parse_path(TALLOC_CTX *ctx,
                if (!*pp_server) {
                        return -1;
                }
                if (!*pp_server) {
                        return -1;
                }
-                       *pp_server[wl] = '\0';
+               (*pp_server)[wl] = '\0';
                return 0;
        }
 
                return 0;
        }