Commit a1d9c2a
committed
in_forward: fix init error cleanup and parser state handling
- Reset per-message option state in forward parser to avoid stale options reuse.
- Fix HELO handshake path to return error immediately on send failure.
- Add NULL-check for security.users split parsing.
- Use fw_config_destroy() on init failures to cleanly release allocated resources.
- Align options index types/sentinels (chunk_id/metadata_id) to int for safer comparisons.
Signed-off-by: Eduardo Silva <eduardo@chronosphere.io>1 parent 3b64243 commit a1d9c2a
3 files changed
+20
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
222 | 222 | | |
223 | 223 | | |
224 | 224 | | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
225 | 233 | | |
226 | 234 | | |
227 | 235 | | |
| |||
348 | 356 | | |
349 | 357 | | |
350 | 358 | | |
351 | | - | |
| 359 | + | |
352 | 360 | | |
353 | 361 | | |
354 | 362 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | | - | |
| 93 | + | |
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
| 120 | + | |
120 | 121 | | |
121 | 122 | | |
122 | 123 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
254 | 254 | | |
255 | 255 | | |
256 | 256 | | |
257 | | - | |
258 | 257 | | |
259 | 258 | | |
260 | 259 | | |
| |||
302 | 301 | | |
303 | 302 | | |
304 | 303 | | |
305 | | - | |
306 | | - | |
307 | | - | |
308 | | - | |
309 | | - | |
| 304 | + | |
310 | 305 | | |
311 | 306 | | |
312 | | - | |
313 | | - | |
314 | | - | |
| 307 | + | |
315 | 308 | | |
316 | 309 | | |
317 | 310 | | |
| |||
827 | 820 | | |
828 | 821 | | |
829 | 822 | | |
830 | | - | |
| 823 | + | |
831 | 824 | | |
832 | 825 | | |
833 | 826 | | |
| |||
880 | 873 | | |
881 | 874 | | |
882 | 875 | | |
883 | | - | |
| 876 | + | |
884 | 877 | | |
885 | 878 | | |
886 | 879 | | |
887 | 880 | | |
888 | 881 | | |
889 | 882 | | |
890 | 883 | | |
891 | | - | |
| 884 | + | |
892 | 885 | | |
893 | 886 | | |
894 | 887 | | |
| |||
941 | 934 | | |
942 | 935 | | |
943 | 936 | | |
944 | | - | |
| 937 | + | |
945 | 938 | | |
946 | 939 | | |
947 | 940 | | |
| |||
1256 | 1249 | | |
1257 | 1250 | | |
1258 | 1251 | | |
| 1252 | + | |
| 1253 | + | |
1259 | 1254 | | |
1260 | | - | |
1261 | | - | |
1262 | 1255 | | |
1263 | 1256 | | |
1264 | 1257 | | |
| |||
1353 | 1346 | | |
1354 | 1347 | | |
1355 | 1348 | | |
| 1349 | + | |
1356 | 1350 | | |
1357 | 1351 | | |
1358 | 1352 | | |
| |||
0 commit comments