mirror of
https://github.com/yarrick/iodine.git
synced 2024-11-30 00:46:05 +03:00
Remove double warnings
This commit is contained in:
parent
6d1a003c1e
commit
d6ec29be4d
@ -402,8 +402,11 @@ handshake(int dns_fd)
|
|||||||
if(r > 0) {
|
if(r > 0) {
|
||||||
read = read_dns(dns_fd, in, sizeof(in));
|
read = read_dns(dns_fd, in, sizeof(in));
|
||||||
|
|
||||||
if(read < 0) {
|
if(read <= 0) {
|
||||||
warn("handshake read");
|
if (read == 0) {
|
||||||
|
warn("handshake read");
|
||||||
|
}
|
||||||
|
/* if read < 0 then warning has been printed already */
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user