Detected by Coverity Scan. Issue
1364728.
{
char const *token = ConfigParser::NextToken();
- if (!token)
+ if (!token) {
self_destruct();
+ return;
+ }
/* starts with a bare number for the max... back-compatible */
n_max = xatoui(token);
if (n_max < 1) {
debugs(0, DBG_CRITICAL, "ERROR: The maximum number of processes cannot be less than 1.");
self_destruct();
+ return;
}
/* Parse extension options */
else {
debugs(0, DBG_CRITICAL, "ERROR: Unsupported on-persistent-overloaded action: " << action);
self_destruct();
+ return;
}
} else {
debugs(0, DBG_PARSE_NOTE(DBG_IMPORTANT), "ERROR: Undefined option: " << token << ".");
self_destruct();
+ return;
}
}