luad

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit 1b018b3db487aa68b89af5e459fa64ece8c24f96
parent adf7f542bb09d6cb4fe4417ae97b50ae4f558b21
Author: Daniel Barlow <dan@telent.net>
Date:   Tue, 26 May 2026 19:08:34 +0100

check recvmsg return

Diffstat:
Mluad.c | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/luad.c b/luad.c @@ -244,6 +244,8 @@ int main(int argc, char **argv) if(pollfds[0].revents) { if(find_peer(0)) { int len = recvmsg(socket, &msg , 0); + if(len<=0) continue; + int peer_fds[3]; if(fds_from_msg(&msg, peer_fds)) { char *argline = malloc(len);