-rw-r--r-- | libopie2/opienet/opcap.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libopie2/opienet/opcap.cpp b/libopie2/opienet/opcap.cpp index 04b1bb1..e362883 100644 --- a/libopie2/opienet/opcap.cpp +++ b/libopie2/opienet/opcap.cpp @@ -830,3 +830,3 @@ OPacket* OPacketCapturer::next() - if ( header.len ) + if ( pdata && header.len ) { @@ -844,2 +844,3 @@ OPacket* OPacketCapturer::next() { + qWarning( "OPacketCapturer::next() - no packet received!" ); return 0; |