diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2014-07-31 10:27:40 +0200 |
---|---|---|
committer | Stef Walter <stefw@redhat.com> | 2014-09-25 09:48:15 +0200 |
commit | 206379862e41114a3f6f4fb010b576b45bcd93f0 (patch) | |
tree | aa7e55ba162bce5797d0613e3474b6d2ece2c999 | |
parent | 473d15ffdff2a248b928b99abda97c74bfb01070 (diff) | |
download | p11-kit-206379862e41114a3f6f4fb010b576b45bcd93f0.tar.gz |
remote: cleanup socket file
-rw-r--r-- | p11-kit/remote.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/p11-kit/remote.c b/p11-kit/remote.c index da05746..4367bf4 100644 --- a/p11-kit/remote.c +++ b/p11-kit/remote.c @@ -302,7 +302,7 @@ p11_kit_remote_serve_module (CK_FUNCTION_LIST *module, if (ret == 0 && children_avail == 0) { /* timeout */ p11_message ("no connections to %s for %u secs, exiting", socket_file, timeout); - exit(0); + goto exit; } sa_len = sizeof(sa); @@ -361,6 +361,8 @@ p11_kit_remote_serve_module (CK_FUNCTION_LIST *module, p11_buffer_uninit (&options); p11_virtual_uninit (&virt); - return ret; + exit: + remove(socket_file); + exit(0); } |