commit dd179c35d31a64503484b5bda4bcb72ce0dca065 from: Martijn van Duren date: Wed Apr 3 07:56:53 2019 UTC Make sure we call event_init only once commit - c6714f66eaf3c9de88af2ecbc1203dd40e179694 commit + dd179c35d31a64503484b5bda4bcb72ce0dca065 blob - 43ba16459fc95b747f77424a8a39393de727e99a blob + 335ff458e79a73e8d2f105f064dbb66cd2503d5d --- smtp_proc.c +++ smtp_proc.c @@ -450,8 +450,10 @@ smtp_register(char *type, char *phase, char *direction if (ready) fatalx("Can't register when proc is running"); - if (!evinit) + if (!evinit) { event_init(); + evinit = 1; + } for (i = 0; i < NITEMS(smtp_callbacks); i++) { if (strcmp(type, smtp_callbacks[i].type) == 0 &&