Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F171024778
D59306.id185570.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
545 B
Referenced Files
None
Subscribers
None
D59306.id185570.diff
View Options
diff --git a/sbin/hastd/hast_proto.c b/sbin/hastd/hast_proto.c
--- a/sbin/hastd/hast_proto.c
+++ b/sbin/hastd/hast_proto.c
@@ -152,10 +152,12 @@
goto fail;
if (ebuf_add_tail(eb, NULL, hdr.size) == -1)
goto fail;
- hptr = ebuf_data(eb, NULL);
- PJDLOG_ASSERT(hptr != NULL);
- if (proto_recv(conn, hptr, hdr.size) == -1)
- goto fail;
+ if (hdr.size > 0) {
+ hptr = ebuf_data(eb, NULL);
+ PJDLOG_ASSERT(hptr != NULL);
+ if (proto_recv(conn, hptr, hdr.size) == -1)
+ goto fail;
+ }
nv = nv_ntoh(eb);
if (nv == NULL)
goto fail;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Sep 9, 6:28 AM (16 h, 4 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
37985391
Default Alt Text
D59306.id185570.diff (545 B)
Attached To
Mode
D59306: hastd: Fix crash on empty message
Attached
Detach File
Event Timeline
Log In to Comment