Skip to content

Commit 8e1f428

Browse files
committed
http: resolve dead code warning for mod_fastcgi_push_params_end
CID 1590465: (#1 of 1): Logically dead code (DEADCODE) dead_error_line: Execution cannot reach this statement: return pack_result::failure;. Fixes: gromox-0~666
1 parent bec6aba commit 8e1f428

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

exch/http/fastcgi.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ static pack_result mod_fastcgi_push_params_end(NDR_PUSH *pndr)
298298

299299
offset = pndr->offset;
300300
len = offset - 8;
301-
if (len > 0xFFFF)
301+
if (offset > 0xFFFF)
302302
return pack_result::failure;
303303
pndr->offset = 4;
304304
TRY(pndr->p_uint16(len));

0 commit comments

Comments
 (0)