1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-06 13:18:07 +03:00

s4-rpc_server/drsuapi: Update getnc_state to be != NULL

This is closer to our READDME.Coding style

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15401

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
(cherry picked from commit 2aba9e230e)
This commit is contained in:
Andrew Bartlett 2023-06-27 17:01:28 +12:00 committed by Jule Anger
parent 0a269490b6
commit ee8dafa103

View File

@ -2996,7 +2996,7 @@ allowed:
}
/* see if a previous replication has been abandoned */
if (getnc_state) {
if (getnc_state != NULL) {
struct ldb_dn *new_dn;
ret = drs_ObjectIdentifier_to_dn_and_nc_root(getnc_state,
sam_ctx,
@ -3025,7 +3025,7 @@ allowed:
}
}
if (getnc_state) {
if (getnc_state != NULL) {
ret = drsuapi_DsReplicaHighWaterMark_cmp(&getnc_state->last_hwm,
&req10->highwatermark);
if (ret != 0) {