Fixed possible pointer error in libcapi

This commit is contained in:
MelwareDE 2009-02-09 17:55:29 +00:00
parent ac80ecee49
commit 55e6bef4d4
2 changed files with 3 additions and 0 deletions

View File

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

View File

@ -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;
}