diff --git a/openair-cn/SGW-LITE/spgw_config.c b/openair-cn/SGW-LITE/spgw_config.c
index 4613f5f413e8b23229b86b0409a8490f8ea99d73..d84f3f1a448dcbaf4faebf7ae379e2b9fc41de9d 100755
--- a/openair-cn/SGW-LITE/spgw_config.c
+++ b/openair-cn/SGW-LITE/spgw_config.c
@@ -136,7 +136,7 @@ int spgw_system(char *command_pP, int abort_on_errorP) {
   if (command_pP) {
       SPGW_APP_INFO("system command: %s\n",command_pP);
       ret = system(command_pP);
-      if (ret < 0) {
+      if (ret != 0) {
           SPGW_APP_ERROR("ERROR in system command %s: %d\n",
                      command_pP,ret);
           if (abort_on_errorP) {