Skip to content
This repository was archived by the owner on Feb 2, 2026. It is now read-only.

Commit 9bcd4d5

Browse files
committed
Don't send zero-length record
1 parent 2017c44 commit 9bcd4d5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

vxi11/rpc.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,8 @@ def sendfrag(sock, last, frag):
222222
sock.send(header + frag)
223223

224224
def sendrecord(sock, record):
225-
sendfrag(sock, 1, record)
225+
if len(record) > 0:
226+
sendfrag(sock, 1, record)
226227

227228
def recvfrag(sock):
228229
header = sock.recv(4)

0 commit comments

Comments
 (0)