aboutsummaryrefslogtreecommitdiff
path: root/testcode/petal.c
diff options
context:
space:
mode:
authorCy Schubert <cy@FreeBSD.org>2022-02-17 22:47:14 +0000
committerCy Schubert <cy@FreeBSD.org>2022-02-17 22:47:14 +0000
commit3574dc0bd83e731bba79edc130c0569bf05f7af5 (patch)
tree0815a1fbcd844efe87c2536cb869f173cfdee16c /testcode/petal.c
parent9b87431a326169e72d5ca55670cb3c95205aa350 (diff)
Diffstat (limited to 'testcode/petal.c')
-rw-r--r--testcode/petal.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/testcode/petal.c b/testcode/petal.c
index 6ea3c34cdaa5..63d3d452ee34 100644
--- a/testcode/petal.c
+++ b/testcode/petal.c
@@ -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;