summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/include/msdfs.h2
-rw-r--r--source3/smbd/msdfs.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/source3/include/msdfs.h b/source3/include/msdfs.h
index 49b3ad4949..4551325843 100644
--- a/source3/include/msdfs.h
+++ b/source3/include/msdfs.h
@@ -52,7 +52,7 @@ struct referral {
struct junction_map {
char *service_name;
char *volume_name;
- char *comment;
+ const char *comment;
int referral_count;
struct referral* referral_list;
};
diff --git a/source3/smbd/msdfs.c b/source3/smbd/msdfs.c
index bdcdc92df2..84ee282372 100644
--- a/source3/smbd/msdfs.c
+++ b/source3/smbd/msdfs.c
@@ -1504,6 +1504,7 @@ static int form_junctions(TALLOC_CTX *ctx,
if (!jucn[cnt].service_name || !jucn[cnt].volume_name) {
goto out;
}
+ jucn[cnt].comment = "";
jucn[cnt].referral_count = 1;
ref = jucn[cnt].referral_list = TALLOC_ZERO_P(ctx, struct referral);
@@ -1563,6 +1564,7 @@ static int form_junctions(TALLOC_CTX *ctx,
!jucn[cnt].volume_name) {
goto out;
}
+ jucn[cnt].comment = "";
cnt++;
}
}