summaryrefslogtreecommitdiffstats
path: root/sources
diff options
context:
space:
mode:
authorJavier Sánchez Parra <jsanchez@soleta.eu>2019-11-25 12:48:26 +0100
committerOpenGnSys Support Team <soporte-og@soleta.eu>2019-11-25 13:19:41 +0100
commita245411ab23f9fa1e5fd43ce5ce0d1391e6ed6e6 (patch)
treeaabe4274876e699e7f428db86f1e846409f3ddfa /sources
parent696c5bbaf0be85a9e6382e611bf21a906838c71a (diff)
#924 Fix that only the commands without session were checked
Irina reports that the bug fixed in 78a97c5 happens again when you run a command with a session (queue of actions). The bug was introduced in 78a97c5, the goal of the commit was to change the behaviour of respuestaEstandar to always check the result of a command, whether it has a session or not. But, instead of this behaviour, the commit changes respuestaEstandar to only check the commands without session.
Diffstat (limited to 'sources')
-rw-r--r--sources/ogAdmServer.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/sources/ogAdmServer.cpp b/sources/ogAdmServer.cpp
index 5bf2779..9c6fc41 100644
--- a/sources/ogAdmServer.cpp
+++ b/sources/ogAdmServer.cpp
@@ -1127,6 +1127,11 @@ static bool respuestaEstandar(TRAMA *ptrTrama, char *iph, char *ido, Database db
liberaMemoria(der);
+ if (atoi(res) == ACCION_FALLIDA) {
+ liberaMemoria(res);
+ return false;
+ }
+
liberaMemoria(res);
return true;
}