BUG: https://bugzilla.samba.org/show_bug.cgi?id=15125
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15166
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
struct share_mode_entry e;
struct share_mode_entry_buf e_buf;
NTSTATUS status;
+ int cmp;
bool ret = false;
bool ok;
goto done;
}
- ret = share_mode_entry_cmp(
+ cmp = share_mode_entry_cmp(
old_pid, old_share_file_id, e.pid, e.share_file_id);
- if (ret != 0) {
+ if (cmp != 0) {
struct server_id_buf tmp1, tmp2;
DBG_WARNING("Expected pid=%s, file_id=%"PRIu64", "
"got pid=%s, file_id=%"PRIu64"\n",
ret = true;
done:
TALLOC_FREE(ltdb);
- return true;
+ return ret;
}