diff options
author | Alexander Bokovoy <ab@samba.org> | 2008-04-14 13:56:36 +0400 |
---|---|---|
committer | Alexander Bokovoy <ab@samba.org> | 2008-04-14 13:56:36 +0400 |
commit | 09c5d892201a94c8d24bc5b593942a869ece2f34 (patch) | |
tree | 42d636cd8b66f88ddcfb4d16d3ed489c58e24cf0 | |
parent | 9fd9060e53fc9ccff7e8f34c95e39480a040a26e (diff) | |
download | samba-09c5d892201a94c8d24bc5b593942a869ece2f34.tar.gz samba-09c5d892201a94c8d24bc5b593942a869ece2f34.tar.bz2 samba-09c5d892201a94c8d24bc5b593942a869ece2f34.zip |
Use more error-prone form of testing dm_destroy_session() return code after discussing with Tridge
(This used to be commit 4abdbad52e456764bca1b17ead04edee1e2a2a64)
-rw-r--r-- | source3/smbd/dmapi.c | 2 |
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 { |