make systemd-sslh-generator work again (fix #308 again)

This commit is contained in:
yrutschle 2021-10-04 21:34:22 +02:00
parent b0aeeff465
commit 2cdd60dd18

View File

@ -2,7 +2,13 @@
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "common.h"
#define CHECK_ALLOC(a, str) \
if (!a) { \
fprintf(stderr, "%s:%d:", __FILE__, __LINE__); \
perror(str); \
exit(1); \
}
static char* resolve_listen(const char *hostname, const char *port) {