From 0c552f312b27f23a0c8a9dddb4220c3d9c59cdf1 Mon Sep 17 00:00:00 2001 From: Maxim Mamontov Date: Tue, 27 May 2014 16:59:12 +0300 Subject: [PATCH] Fixed error handling. --- stglibs/srvconf.lib/parsers/get_user.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/stglibs/srvconf.lib/parsers/get_user.cpp b/stglibs/srvconf.lib/parsers/get_user.cpp index 3da8ee98..e796d450 100644 --- a/stglibs/srvconf.lib/parsers/get_user.cpp +++ b/stglibs/srvconf.lib/parsers/get_user.cpp @@ -139,14 +139,11 @@ if (strcasecmp(el, "user") == 0) error = attr[3]; else error = "User not found."; - return; } else if (strcasecmp(attr[0], "login") == 0 && attr[1]) info.login = attr[1]; - parsingAnswer = true; } - else - parsingAnswer = true; + parsingAnswer = true; } } //----------------------------------------------------------------------------- -- 2.44.2