[asterisk-commits] wedhorn: branch 12 r405982 - /branches/12/channels/chan_skinny.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Mon Jan 20 17:18:17 CST 2014
Author: wedhorn
Date: Mon Jan 20 17:18:15 2014
New Revision: 405982
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=405982
Log:
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.
Modified:
branches/12/channels/chan_skinny.c
Modified: branches/12/channels/chan_skinny.c
URL: http://svnview.digium.com/svn/asterisk/branches/12/channels/chan_skinny.c?view=diff&rev=405982&r1=405981&r2=405982
==============================================================================
--- branches/12/channels/chan_skinny.c (original)
+++ branches/12/channels/chan_skinny.c Mon Jan 20 17:18:15 2014
@@ -7595,7 +7595,7 @@
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;
}
More information about the asterisk-commits
mailing list