mirror of
https://github.com/yrutschle/sslh.git
synced 2026-10-22 18:12:10 +03:00
check allocation success
This commit is contained in:
1 parent
2975ae88f2
commit
ad34bc5c5a
1 file changed
+3
-3
+3
-3
@@ -168,13 +168,13 @@ void loop_init(struct loop_info* loop)
|
||||
memset(loop, 0, sizeof(*loop));
|
||||
loop->collection = collection_init(0);
|
||||
loop->probing_list = gap_init(0);
|
||||
CHECK_ALLOC(loop->probing_list, "gap_init");
|
||||
|
||||
udp_init(loop);
|
||||
tcp_init();
|
||||
|
||||
loop->pid2proto = hash_init(32, pid_make_key, pid_cmp);
|
||||
if (!loop->pid2proto) {
|
||||
/* TODO do something! (we're also not doing anything for UDP) */
|
||||
}
|
||||
CHECK_ALLOC(loop->pid2proto, "hash_init");
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user