We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
tfw_hpack_exp_hdr
1 parent 19c3ab3 commit b6ee584Copy full SHA for b6ee584
fw/hpack.c
@@ -1,7 +1,7 @@
1
/**
2
* Tempesta FW
3
*
4
- * Copyright (C) 2019-2024 Tempesta Technologies, Inc.
+ * Copyright (C) 2019-2025 Tempesta Technologies, Inc.
5
6
* This program is free software; you can redistribute it and/or modify it
7
* under the terms of the GNU General Public License as published by
@@ -311,11 +311,16 @@ do { \
311
r = -ENOMEM; \
312
goto out; \
313
} \
314
- if (!TFW_STR_EMPTY(&it->hdr)) \
+ if (!TFW_STR_EMPTY(&it->hdr)) { \
315
it->next = tfw_hpack_exp_hdr(req->pool, \
316
length, it); \
317
- else \
+ if (!it->next) { \
318
+ r = -ENOMEM; \
319
+ goto out; \
320
+ } \
321
+ } else { \
322
BUFFER_HDR_INIT(length, it); \
323
324
325
} while (0)
326
0 commit comments