Fixed potential NULL pointer dereference.
git-svn-id: https://origsvn.digium.com/svn/libpri/branches/1.4@952 2fbb986a-6c06-0410-b554-c9c1f0a7f128
This commit is contained in:
parent
27a5c7afb6
commit
f04f345113
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user