From 09c5d892201a94c8d24bc5b593942a869ece2f34 Mon Sep 17 00:00:00 2001 From: Alexander Bokovoy Date: Mon, 14 Apr 2008 13:56:36 +0400 Subject: Use more error-prone form of testing dm_destroy_session() return code after discussing with Tridge (This used to be commit 4abdbad52e456764bca1b17ead04edee1e2a2a64) --- source3/smbd/dmapi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/smbd') 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 { -- cgit