Skip to content

Commit 8eee6b2

Browse files
author
Pavel Siska
committed
Process - Quic - fix invalid return code from add_quic()
Fix add_quic() function invalid return code that caused pipeline infinite loop
1 parent 5fdf850 commit 8eee6b2

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/plugins/process/quic/src/quic.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -543,9 +543,12 @@ int QUICPlugin::add_quic(Flow& rec, const Packet& pkt)
543543
}
544544
// Correct if QUIC has already been detected
545545
if (!new_qptr && (ret == QUIC_NOT_DETECTED)) {
546-
return QUIC_DETECTED;
546+
return 0;
547+
}
548+
if (ret == FLOW_FLUSH) {
549+
return FLOW_FLUSH;
547550
}
548-
return ret;
551+
return 0;
549552
}
550553

551554
void QUICPlugin::finish(bool print_stats)

0 commit comments

Comments
 (0)