From f04f345113f6b76ed7c96f02f1ff0b928dc22f7f Mon Sep 17 00:00:00 2001 From: Richard Mudgett Date: Thu, 23 Jul 2009 20:53:59 +0000 Subject: [PATCH] Fixed potential NULL pointer dereference. git-svn-id: https://origsvn.digium.com/svn/libpri/branches/1.4@952 2fbb986a-6c06-0410-b554-c9c1f0a7f128 --- pri_facility.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pri_facility.c b/pri_facility.c index 4700740..3e2e8ad 100644 --- a/pri_facility.c +++ b/pri_facility.c @@ -873,7 +873,7 @@ int mwi_message_send(struct pri *ctrl, q931_call *call, struct pri_sr *req, int unsigned char buffer[255]; unsigned char *end; - if (!req->called[0]) { + if (!req->called || !req->called[0]) { return -1; }