summaryrefslogtreecommitdiffstats
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
commitb2b8797b82527d2d931d683bb90b23978076774e (patch)
treed4be1ebd8bc6329b77b083d817f8aede700803a0
parentb551d58163c91677d0a0fb83c7ccf55049a1916e (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.
-rw-r--r--admin/Sources/Services/ogAdmServer/sources/ogAdmServer.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/admin/Sources/Services/ogAdmServer/sources/ogAdmServer.cpp b/admin/Sources/Services/ogAdmServer/sources/ogAdmServer.cpp
index 5bf27798..9c6fc419 100644
--- a/admin/Sources/Services/ogAdmServer/sources/ogAdmServer.cpp
+++ b/admin/Sources/Services/ogAdmServer/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;
}