Several fixes to restconf internal and vagrants tests

This commit is contained in:
Olof hagsand 2021-05-24 11:31:00 +02:00
parent 603f70e51f
commit ae02d02d63
6 changed files with 47 additions and 7 deletions

View file

@ -402,7 +402,7 @@ clicon_msg_rcv(int s,
goto done;
}
memcpy(*msg, &hdr, hlen);
if ((len2 = atomicio(read, s, (*msg)->op_body, mlen - sizeof(hdr))) == 0){
if ((len2 = atomicio(read, s, (*msg)->op_body, mlen - sizeof(hdr))) < 0){
clicon_err(OE_CFG, errno, "read");
goto done;
}