Unverified Commit aa9100ad by Donghwa Jeong Committed by Christian Brauner

conf: va_end was not called.

parent 1322cb60
...@@ -383,6 +383,7 @@ int run_script(const char *name, const char *section, const char *script, ...) ...@@ -383,6 +383,7 @@ int run_script(const char *name, const char *section, const char *script, ...)
rc = snprintf(buffer + ret, len, " %s", p); rc = snprintf(buffer + ret, len, " %s", p);
if (rc < 0 || rc >= len) { if (rc < 0 || rc >= len) {
ERROR("Script args too long."); ERROR("Script args too long.");
va_end(ap);
return -1; return -1;
} }
ret += rc; ret += rc;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment