BUG: https://bugzilla.samba.org/show_bug.cgi?id=11509
Signed-off-by: Har Gagan Sahai <SHarGagan@novell.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ira Cooper <ira@wakeful.net>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Fri Sep 11 06:39:19 CEST 2015 on sn-devel-104
status = cli_dfs_get_referral(ctx, cli_ipc, dfs_path, &refs,
&num_refs, &consumed);
- if (!NT_STATUS_IS_OK(status) || !num_refs) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (!refs[0].dfspath) {
+ if (!num_refs || !refs[0].dfspath) {
return NT_STATUS_NOT_FOUND;
}