Skip to content

Commit f57826d

Browse files
authored
Merge pull request #309 from CESNET/quic-return-code-fix
Process - Quic - fix invalid return code from add_quic()
2 parents 5fdf850 + 8eee6b2 commit f57826d

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)