diff options
author | Nathan Straz <nstraz@redhat.com> | 2013-08-01 04:21:38 -0400 |
---|---|---|
committer | Nathan Straz <nstraz@redhat.com> | 2013-09-11 17:33:58 -0400 |
commit | bbf62ffff81089ae1ef74d4e1927710af982799b (patch) | |
tree | ca6e3194aa46db2e69fd9db21a0aaed634d6559c /sockutil.c | |
parent | bbceec6030f8501ce129a93980c0f2e045cce562 (diff) | |
download | qarsh-bbf62ffff81089ae1ef74d4e1927710af982799b.tar.gz qarsh-bbf62ffff81089ae1ef74d4e1927710af982799b.tar.xz qarsh-bbf62ffff81089ae1ef74d4e1927710af982799b.zip |
Convert packet parsing
Diffstat (limited to 'sockutil.c')
-rw-r--r-- | sockutil.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -229,7 +229,7 @@ recv_read: return NULL; } else if (packetsize <= (ret - sizeof packetsize)) { pb.start += sizeof packetsize; - qp = parse_packets(pb.buf + pb.start, pb.end - pb.start); + qp = parse_packet(pb.buf + pb.start, pb.end - pb.start); } else { /* packetsize > what we read, we need to read more */ printf("Compacting buffer to fit rest of packet, %d read, %d left\n", ret, packetsize - ret); memmove(pb.buf, pb.buf + pb.start, pb.end - pb.start); |