mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-22 20:56:39 +00:00
Skinny: fix up handling of fragmented packets.
Bad offset in reading second or more fragment of skinny packets. Fixed to offset by char (single byte) rather than size of req. git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/12@405982 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -7595,7 +7595,7 @@ static void *skinny_session(void *data)
|
||||
|
||||
bytesread = 0;
|
||||
while (1) {
|
||||
if ((res = read(s->fd, &req->data+bytesread, dlen-bytesread)) < 0) {
|
||||
if ((res = read(s->fd, ((char*)&req->data)+bytesread, dlen-bytesread)) < 0) {
|
||||
ast_log(LOG_WARNING, "Data read() returned error: %s\n", strerror(errno));
|
||||
break;
|
||||
}
|
||||
|
Reference in New Issue
Block a user