]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- please clang analyzer for loop in test code.
authorW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Wed, 2 Feb 2022 13:11:36 +0000 (14:11 +0100)
committerW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Wed, 2 Feb 2022 13:11:36 +0000 (14:11 +0100)
doc/Changelog
testcode/petal.c

index 4bcbbc360bc2699f1fb57aa75ed893e7edf36a5f..ddde12e1fd4c4d96dcb396a1585f40a9a5c2e049 100644 (file)
@@ -11,6 +11,7 @@
        - Update version number in repo to 1.15.0 for upcoming release,
          since it changes the aggressive-nsec default and the ratelimit change.
        - Fix header comment for doxygen for authextstrtoaddr.
+       - please clang analyzer for loop in test code.
 
 1 February 2022: George
        - Merge PR #603 from fobser: Use OpenSSL 1.1 API to access DSA and RSA
index 6ea3c34cdaa50642b581b46cc68db9985184853e..63d3d452ee345b933cde66ba9370ff7521e7a40c 100644 (file)
@@ -582,10 +582,9 @@ do_service(char* addr, int port, char* key, char* cert)
 {
        SSL_CTX* sslctx = setup_ctx(key, cert);
        int fd = setup_fd(addr, port);
-       int go = 1;
        if(fd == -1) print_exit("could not setup sockets");
        if(verb) {printf("petal start\n"); fflush(stdout);}
-       while(go) {
+       while(1) {
                struct sockaddr_storage from;
                socklen_t flen = (socklen_t)sizeof(from);
                int s;