OPENZAP-37 (fail if invalid dialect is defined.

git-svn-id: http://svn.openzap.org/svn/openzap/trunk@616 a93c3328-9c30-0410-af19-c9cd2b2d52af
This commit is contained in:
Michael Jerris 2008-12-15 20:20:09 +00:00
parent dd658a138c
commit ff4858ec6b
1 changed files with 1 additions and 1 deletions

View File

@ -1746,7 +1746,7 @@ static ZIO_SIG_CONFIGURE_FUNCTION(zap_isdn_configure_span)
} }
dialect = q931_str2Q931Dialect_type(val); dialect = q931_str2Q931Dialect_type(val);
if (dialect == Q931_Dialect_Count) { if (dialect == Q931_Dialect_Count) {
dialect = Q931_Dialect_National; return ZAP_FAIL;
} }
} else if (!strcasecmp(var, "opts")) { } else if (!strcasecmp(var, "opts")) {
opts = va_arg(ap, uint32_t); opts = va_arg(ap, uint32_t);