Merged revisions 71003 via svnmerge from
authorRussell Bryant <russell@russellbryant.com>
Fri, 22 Jun 2007 03:15:34 +0000 (03:15 +0000)
committerRussell Bryant <russell@russellbryant.com>
Fri, 22 Jun 2007 03:15:34 +0000 (03:15 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r71003 | russell | 2007-06-21 22:14:41 -0500 (Thu, 21 Jun 2007) | 3 lines

Fix a small typo which ... well ... completely broke chan_iax2.  oops!
(issue #9937, patch by me)

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@71004 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_iax2.c

index 23875e1..a33d8cb 100644 (file)
@@ -6603,7 +6603,7 @@ static int socket_read(int *id, int fd, short events, void *cbdata)
 
        len = sizeof(thread->iosin);
        thread->iofd = fd;
-       thread->buf_len = recvfrom(fd, thread->readbuf, sizeof(thread->buf), 0, (struct sockaddr *) &thread->iosin, &len);
+       thread->buf_len = recvfrom(fd, thread->readbuf, sizeof(thread->readbuf), 0, (struct sockaddr *) &thread->iosin, &len);
        thread->buf_size = sizeof(thread->readbuf);
        thread->buf = thread->readbuf;
        if (thread->buf_len < 0) {