Remove double warnings

This commit is contained in:
Erik Ekman 2008-07-12 20:30:35 +00:00 committed by Erik Ekman
parent 081b5b3330
commit 3c3cddee67

View file

@ -402,8 +402,11 @@ handshake(int dns_fd)
if(r > 0) {
read = read_dns(dns_fd, in, sizeof(in));
if(read < 0) {
if(read <= 0) {
if (read == 0) {
warn("handshake read");
}
/* if read < 0 then warning has been printed already */
continue;
}