hdlc: Don't bother recording empty packets

This commit is contained in:
Denis Kenzior 2010-06-29 11:46:20 -05:00
parent 1afd51a8c7
commit aca0fdf87f
1 changed files with 3 additions and 0 deletions

View File

@ -79,6 +79,9 @@ static void hdlc_record(int fd, gboolean in, guint8 *data, guint16 length)
if (fd < 0)
return;
if (len == 0)
return;
gettimeofday(&now, NULL);
ts = htonl(now.tv_sec & 0xffffffff);