diff options
Diffstat (limited to 'nslcd/hackers.c')
-rw-r--r-- | nslcd/hackers.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nslcd/hackers.c b/nslcd/hackers.c index 57d4f97..e7b2525 100644 --- a/nslcd/hackers.c +++ b/nslcd/hackers.c @@ -11,12 +11,13 @@ void *hackers_session_worker(void *sess) { return NULL; } -struct session *hackers_session_create(pthread_t *thread) { +struct session *hackers_session_create(pthread_t *thread, const char *yamldir) { struct session *session = malloc(sizeof(struct session)); if (session == NULL) { log_log(LOG_CRIT, "hackers_session_create(): malloc() failed to allocate memory"); exit(EXIT_FAILURE); } + hackers_init(yamldir, session); if (pthread_create(thread, NULL, hackers_session_worker, (void*)session)) { log_log(LOG_ERR, "unable to start hackers worker thread: %s", strerror(errno)); |