Skip to content

Commit 353b6a2

Browse files
committed
nsp: fix deref-after-null-check in nsp_ndr_push_prop_val_union
[COV] Fixes: gromox-1.16-206-g1a461ff85
1 parent 161d971 commit 353b6a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

exch/nsp/nsp_ndr.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1070,7 +1070,7 @@ static pack_result nsp_ndr_push_prop_val_union(NDR_PUSH *pndr,
10701070
TRY(nsp_ndr_push_binary(pndr, FLAG_CONTENT, &r->bin));
10711071
break;
10721072
case PT_CLSID:
1073-
if (r->pguid == nullptr)
1073+
if (r->pguid != nullptr)
10741074
TRY(nsp_ndr_push_flatuid(pndr, r->pguid));
10751075
break;
10761076
case PT_MV_SHORT:

0 commit comments

Comments
 (0)