dect
/
asterisk
Archived
13
0
Fork 0

Record read size

git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5177 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
markster 2005-03-14 01:05:34 +00:00
parent 318404dfb9
commit d5a1497121
1 changed files with 1 additions and 0 deletions

View File

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