From 2ce7890fddb1e60d738f4dec587b301ebfcab5b2 Mon Sep 17 00:00:00 2001 From: Matthew Fredrickson Date: Thu, 8 Jun 2006 22:16:55 +0000 Subject: [PATCH] Make sure we don't send display if callername is set to a 0 length string. git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@351 2fbb986a-6c06-0410-b554-c9c1f0a7f128 --- q931.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/q931.c b/q931.c index 2c31ce4..acb1961 100644 --- a/q931.c +++ b/q931.c @@ -1061,6 +1061,9 @@ static FUNC_SEND(transmit_display) { int i; + if (!call->callername[0]) + return 0; + if ((pri->switchtype == PRI_SWITCH_QSIG) || ((pri->switchtype == PRI_SWITCH_EUROISDN_E1) && (pri->localtype == PRI_CPE)) || !call->callername[0])