Check for data presense (bug #3435 again)
git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@184 2fbb986a-6c06-0410-b554-c9c1f0a7f128
This commit is contained in:
2
q931.c
2
q931.c
@@ -1376,6 +1376,8 @@ static FUNC_DUMP(dump_cause)
|
||||
pri_message("%c Ext: %d Cause: %s (%d), class = %s (%d) ]\n",
|
||||
prefix, (ie->data[1] >> 7), pri_cause2str(ie->data[1] & 0x7f), ie->data[1] & 0x7f,
|
||||
pri_causeclass2str((ie->data[1] & 0x7f) >> 4), (ie->data[1] & 0x7f) >> 4);
|
||||
if (ie->len < 3)
|
||||
return;
|
||||
/* Dump cause data in readable form */
|
||||
switch(ie->data[1] & 0x7f) {
|
||||
case PRI_CAUSE_IE_NONEXIST:
|
||||
|
||||
Reference in New Issue
Block a user