From 2cdd60dd18d3c61089eab075efc146c1a0a1acf5 Mon Sep 17 00:00:00 2001
From: yrutschle <git1@rutschle.net>
Date: Mon, 4 Oct 2021 21:34:22 +0200
Subject: [PATCH] make systemd-sslh-generator work again (fix #308 again)

---
 systemd-sslh-generator.c | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/systemd-sslh-generator.c b/systemd-sslh-generator.c
index 315e207..6d6a44f 100644
--- a/systemd-sslh-generator.c
+++ b/systemd-sslh-generator.c
@@ -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) {