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:
Mark Spencer
2005-01-27 20:47:10 +00:00
parent 14796a30af
commit dc74d755a8

2
q931.c
View File

@@ -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: