Fix STUN client when handling unknown attributes. Before it failed the transaction, now it simply just ignores it.

git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@711 74dad513-b988-da41-8d7b-12977e46ad98
This commit is contained in:
Benny Prijono 2006-09-13 21:56:11 +00:00
parent abd2ae9e92
commit 4e5519f42f
1 changed files with 2 additions and 2 deletions

View File

@ -96,9 +96,9 @@ PJ_DEF(pj_status_t) pj_stun_parse_msg( void *buf, pj_size_t len,
}
if (pj_ntohs((*attr)->type) > PJ_STUN_ATTR_REFLECTED_FORM) {
PJ_LOG(4,(THIS_FILE, "Error: invalid attr type %d in attr %d",
PJ_LOG(5,(THIS_FILE, "Warning: unknown attr type %x in attr %d. "
"Attribute was ignored.",
pj_ntohs((*attr)->type), msg->attr_count));
return PJLIB_UTIL_ESTUNINATTRTYPE;
}
msg_len = (pj_uint16_t)(msg_len - len);