bail on bad args
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@588 a93c3328-9c30-0410-af19-c9cd2b2d52af
This commit is contained in:
parent
da93edd6ad
commit
540ac84710
|
@ -132,6 +132,9 @@ static ZIO_SIG_CONFIGURE_FUNCTION(zap_analog_configure_span)
|
|||
break;
|
||||
}
|
||||
hotline = val;
|
||||
} else {
|
||||
snprintf(span->last_error, sizeof(span->last_error), "Unknown parameter [%s]", var);
|
||||
return ZAP_FAIL;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -108,6 +108,9 @@ static ZIO_SIG_CONFIGURE_FUNCTION(zap_analog_em_configure_span)
|
|||
break;
|
||||
}
|
||||
max_dialstr = *intval;
|
||||
} else {
|
||||
snprintf(span->last_error, sizeof(span->last_error), "Unknown parameter [%s]", var);
|
||||
return ZAP_FAIL;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1750,6 +1750,9 @@ static ZIO_SIG_CONFIGURE_FUNCTION(zap_isdn_configure_span)
|
|||
} else if (q931loglevel > Q931_LOG_DEBUG) {
|
||||
q931loglevel = Q931_LOG_DEBUG;
|
||||
}
|
||||
} else {
|
||||
snprintf(span->last_error, sizeof(span->last_error), "Unknown parameter [%s]", var);
|
||||
return ZAP_FAIL;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1119,6 +1119,9 @@ static ZIO_SIG_CONFIGURE_FUNCTION(zap_ss7_boost_configure_span)
|
|||
break;
|
||||
}
|
||||
remote_port = *intval;
|
||||
} else {
|
||||
snprintf(span->last_error, sizeof(span->last_error), "Unknown parameter [%s]", var);
|
||||
return ZAP_FAIL;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue