summaryrefslogtreecommitdiffstats
path: root/sockutil.c
diff options
context:
space:
mode:
authorNathan Straz <nstraz@redhat.com>2013-08-01 04:21:38 -0400
committerNathan Straz <nstraz@redhat.com>2013-09-11 17:33:58 -0400
commitbbf62ffff81089ae1ef74d4e1927710af982799b (patch)
treeca6e3194aa46db2e69fd9db21a0aaed634d6559c /sockutil.c
parentbbceec6030f8501ce129a93980c0f2e045cce562 (diff)
downloadqarsh-bbf62ffff81089ae1ef74d4e1927710af982799b.tar.gz
qarsh-bbf62ffff81089ae1ef74d4e1927710af982799b.tar.xz
qarsh-bbf62ffff81089ae1ef74d4e1927710af982799b.zip
Convert packet parsing
Diffstat (limited to 'sockutil.c')
-rw-r--r--sockutil.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sockutil.c b/sockutil.c
index 954297a..dd3d1a8 100644
--- a/sockutil.c
+++ b/sockutil.c
@@ -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);