summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/dmapi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/dmapi.c b/source3/smbd/dmapi.c
index fd252e980a..1049c95a39 100644
--- a/source3/smbd/dmapi.c
+++ b/source3/smbd/dmapi.c
@@ -223,7 +223,7 @@ bool dmapi_destroy_session(void)
{
if (samba_dmapi_session != DM_NO_SESSION) {
become_root();
- if (!dm_destroy_session(samba_dmapi_session)) {
+ if (0 == dm_destroy_session(samba_dmapi_session)) {
session_num--;
samba_dmapi_session = DM_NO_SESSION;
} else {