summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xchannels/chan_skinny.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/channels/chan_skinny.c b/channels/chan_skinny.c
index a5f849dc8..3b4d5269f 100755
--- a/channels/chan_skinny.c
+++ b/channels/chan_skinny.c
@@ -2623,6 +2623,7 @@ static int get_input(struct skinnysession *s)
dlen = *(int *)s->inbuf;
if (dlen+8 > sizeof(s->inbuf))
dlen = sizeof(s->inbuf) - 8;
+ *(int *)s->inbuf = dlen;
res = read(s->fd, s->inbuf+4, dlen+4);
ast_mutex_unlock(&s->lock);
if (res != (dlen+4)) {