ovsdb: Fix error leak for negative timeout and invalid until case
[cascardo/ovs.git] / ovsdb / execution.c
index 6314757..2be131d 100644 (file)
@@ -643,6 +643,8 @@ ovsdb_execute_wait(struct ovsdb_execution *x, struct ovsdb_parser *parser,
         } else {
             timeout_msec = LLONG_MAX;
         }
+    }
+    if (!error) {
         if (strcmp(json_string(until), "==")
             && strcmp(json_string(until), "!=")) {
             error = ovsdb_syntax_error(until, NULL,