diff options
Diffstat (limited to 'src/satd-diminished.c')
-rw-r--r-- | src/satd-diminished.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/src/satd-diminished.c b/src/satd-diminished.c index fa3b2e5..4316e22 100644 --- a/src/satd-diminished.c +++ b/src/satd-diminished.c @@ -149,20 +149,18 @@ accept_again: close(fd), fd = -1; goto accept_again; +fail: + perror(argv[0]); + if (fd >= 0) + close(fd); + rc = 1; done: unlink(argv[1]); if (!rc) unlink(argv[2]); close(SOCK_FILENO); close(STATE_FILENO); - return 0; - -fail: - perror(argv[0]); - if (fd >= 0) - close(fd); - rc = 1; - goto done; + return rc; (void) argc; } |