problem found by "Adrian M. Whatley" <amw> and "Stephan A. Rickauer"
<stephan.rickauer>, both @ni.phys.ethz.ch
fix by me, ok mpf
-/* $OpenBSD: pf.c,v 1.609 2008/07/10 07:41:21 djm Exp $ */
+/* $OpenBSD: pf.c,v 1.610 2008/07/14 13:29:45 henning Exp $ */
/*
* Copyright (c) 2001 Daniel Hartmeier
{
struct mbuf *m0;
- m0 = m_copy(m, 0, M_COPYALL);
+ if ((m0 = m_copy(m, 0, M_COPYALL)) == NULL)
+ return;
+
m0->m_pkthdr.pf.flags |= PF_TAG_GENERATED;
if (r->rtableid >= 0)