﻿From e02e78dc80d2df893b29f8c3209f45c38e6392bf Mon Sep 17 00:00:00 2001
From: Harald Leithner <leithner@itronic.at>
Date: Mon, 24 Feb 2014 15:21:44 +0100
Subject: [PATCH] Fixed wrong result check in change username function.

---
 src/dbmail-user.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/dbmail-user.c b/src/dbmail-user.c
index d04757f..99c4c54 100644
--- a/src/dbmail-user.c
+++ b/src/dbmail-user.c
@@ -113,7 +113,7 @@ int do_username(const uint64_t useridnr, const char * const newuser)
                return 1;
        }

-       if ((result = auth_change_username(useridnr, newuser)))
+       if (! (result = auth_change_username(useridnr, newuser)))
                qerrorf("Error: could not change username.\n");

        return result;
--
1.7.10.4
