Skip to content
Snippets Groups Projects
Commit f3fe7af6 authored by Corentin Chary's avatar Corentin Chary
Browse files

pkcs11-daemon: pthread_create returns 0 on success

parent 0a74306a
No related branches found
No related tags found
No related merge requests found
...@@ -2191,7 +2191,7 @@ void gck_rpc_layer_accept(void) ...@@ -2191,7 +2191,7 @@ void gck_rpc_layer_accept(void)
error = pthread_create(&ds->thread, NULL, error = pthread_create(&ds->thread, NULL,
run_dispatch_thread, &(ds->socket)); run_dispatch_thread, &(ds->socket));
if (!error) { if (error) {
gck_rpc_warn("couldn't start thread: %s", strerror(errno)); gck_rpc_warn("couldn't start thread: %s", strerror(errno));
close(new_fd); close(new_fd);
free(ds); free(ds);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment