Page MenuHomeFreeBSD

D59306.id185561.diff
No OneTemporary

D59306.id185561.diff

diff --git a/sbin/hastd/crash b/sbin/hastd/crash
new file mode 100755
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000
GIT binary patch
literal 0
Hc$@<O00001
literal 0
Hc$@<O00001
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

Mime Type
text/plain
Expires
Wed, Sep 30, 4:24 PM (16 h, 44 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
39956603
Default Alt Text
D59306.id185561.diff (844 B)

Event Timeline