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 commit4a99647629
) (This used to be commit86cae83a7d
)
This commit is contained in:
parent
62f69165f6
commit
65f7457583
@ -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;
|
||||
};
|
||||
|
@ -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++;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user