tests: Fix typo in recent test change
authorEric Blake <eblake@redhat.com>
Wed, 5 Oct 2022 19:23:20 +0000 (14:23 -0500)
committerEric Blake <eblake@redhat.com>
Wed, 5 Oct 2022 19:25:35 +0000 (14:25 -0500)
A missing } caused 'make check' to fail.  While at it, use TAB
consistently.

Fixes: af309d8a ("nbd-server: fix bug in auth for v6-mapped IPv4 addresses")
CC: 吕梦昭10286442 <lv.mengzhao@zte.com.cn>
Signed-off-by: Eric Blake <eblake@redhat.com>
tests/code/clientacl.c

index 3bceb2f..da614fd 100644 (file)
@@ -29,8 +29,9 @@ bool do_test(char* address, char* netmask) {
        while(res) {
                if((err = getnameinfo((struct sockaddr*)res->ai_addr, res->ai_addrlen, buf,
                                        sizeof (buf), NULL, 0, NI_NUMERICHOST))) {
-                        fprintf(stderr, "E: %s\n", gai_strerror(err));
-                        exit(EXIT_FAILURE);
+                       fprintf(stderr, "E: %s\n", gai_strerror(err));
+                       exit(EXIT_FAILURE);
+               }
 
                printf("Found %s\n", buf);