]> git.ipfire.org Git - thirdparty/ldns.git/commitdiff
ldns-dane hang on remotes that dont close properly
authorWillem Toorop <willem@nlnetlabs.nl>
Mon, 13 Feb 2017 14:33:29 +0000 (15:33 +0100)
committerWillem Toorop <willem@nlnetlabs.nl>
Mon, 13 Feb 2017 14:33:29 +0000 (15:33 +0100)
examples/ldns-dane.c

index f223675952060c9ce70588f53a64edfadf9256ba..bdfd4cc3398e6530ae5590a0a2b5d627c7a06bac 100644 (file)
@@ -1951,7 +1951,7 @@ main(int argc, char* const* argv)
 
                        default:     break; /* suppress warning */
                        }
-                       while (SSL_shutdown(ssl) == 0);
+                       (void)SSL_shutdown(ssl);
                        SSL_free(ssl);
                } /* end for all addresses */
        } /* end No certification file */