]> git.stg.codes - stg.git/commitdiff
Fixed error handling.
authorMaxim Mamontov <faust.madf@gmail.com>
Tue, 27 May 2014 13:59:12 +0000 (16:59 +0300)
committerMaxim Mamontov <faust.madf@gmail.com>
Tue, 27 May 2014 13:59:12 +0000 (16:59 +0300)
stglibs/srvconf.lib/parsers/get_user.cpp

index 3da8ee98f99a192ee111f5fcc41b7b32a1354eb4..e796d45094cd249ca5a8933b7f78209ac0f1c7c6 100644 (file)
@@ -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;
     }
 }
 //-----------------------------------------------------------------------------