1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00

Fix a crash in _dfs_Enum

(cherry picked from commit 4a99647629)
(This used to be commit 86cae83a7d)
This commit is contained in:
Volker Lendecke 2008-06-22 13:06:35 +02:00
parent 62f69165f6
commit 65f7457583
2 changed files with 3 additions and 1 deletions

View File

@ -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;
};

View File

@ -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++;
}
}