if ((t = ConfigParser::NextToken()) == NULL) {
debugs(80, DBG_CRITICAL, "wccp2_*_method: missing setting.");
self_destruct();
+ return;
}
/* update configuration if its valid */
if ((t = ConfigParser::NextToken()) == NULL) {
debugs(80, DBG_CRITICAL, "wccp2_assignment_method: missing setting.");
self_destruct();
+ return;
}
/* update configuration if its valid */
if ((t = ConfigParser::NextToken()) == NULL) {
debugs(80, DBG_CRITICAL, "wccp2ParseServiceInfo: missing service info type (standard|dynamic)");
self_destruct();
+ return;
}
if (strcmp(t, "standard") == 0) {
} else {
debugs(80, DBG_CRITICAL, "wccp2ParseServiceInfo: bad service info type (expected standard|dynamic, got " << t << ")");
self_destruct();
+ return;
}
/* Snarf the ID */
if (service_id < 0 || service_id > 255) {
debugs(80, DBG_CRITICAL, "ERROR: invalid WCCP service id " << service_id << " (must be between 0 .. 255)");
self_destruct();
+ return;
}
memset(wccp_password, 0, sizeof(wccp_password));
if (service_id < 0 || service_id > 255) {
debugs(80, DBG_CRITICAL, "ERROR: invalid WCCP service id " << service_id << " (must be between 0 .. 255)");
self_destruct();
+ return;
}
/* Next: find the (hopefully!) existing service */