-/* $OpenBSD: pipex.c,v 1.155 2024/07/26 15:45:31 yasuoka Exp $ */
+/* $OpenBSD: pipex.c,v 1.156 2024/09/27 00:38:49 yasuoka Exp $ */
/*-
* Copyright (c) 2009 Internet Initiative Japan Inc.
mtx_enter(&session->pxs_mtx);
l2tp_session = &session->proto.l2tp;
- if (l2tp_session->ipsecflowinfo != ipsecflowinfo) {
+ if (l2tp_session->ipsecflowinfo > 0 &&
+ l2tp_session->ipsecflowinfo != ipsecflowinfo) {
pipex_session_log(session, LOG_DEBUG,
"received message is %s",
(ipsecflowinfo != 0)? "from invalid ipsec flow" :