Fixed possible pointer error in libcapi
This commit is contained in:
parent
ac80ecee49
commit
55e6bef4d4
1
CHANGES
1
CHANGES
|
@ -3,6 +3,7 @@ CHANGES
|
|||
|
||||
HEAD
|
||||
------------------
|
||||
- fixed possible pointer error in libcapi. receive-buffer is now cleared before using it.
|
||||
|
||||
|
||||
chan_capi-1.1.2
|
||||
|
|
|
@ -472,6 +472,8 @@ static unsigned char *get_buffer(unsigned applid, size_t *sizep, unsigned *handl
|
|||
*sizep = ap->recvbuffersize;
|
||||
*handle = (buf->buf-ap->bufferstart)/ap->recvbuffersize;
|
||||
|
||||
memset(buf->buf, 0, ap->recvbuffersize);
|
||||
|
||||
return buf->buf;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue