mirror of
https://github.com/yrutschle/sslh.git
synced 2025-06-08 19:32:06 +03:00
make systemd-sslh-generator work again (fix #308 again)
This commit is contained in:
parent
b0aeeff465
commit
2cdd60dd18
@ -2,7 +2,13 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdlib.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) {
|
static char* resolve_listen(const char *hostname, const char *port) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user