Fix order of PPP frame recording and processing

This commit is contained in:
Marcel Holtmann 2010-04-01 14:31:19 -07:00
parent 544c02da49
commit 847e7c7f14
1 changed files with 1 additions and 1 deletions

View File

@ -370,8 +370,8 @@ gboolean ppp_cb(GIOChannel *channel, GIOCondition cond, gpointer data)
status = g_io_channel_read_chars(channel, buf, 256,
&bytes_read, &error);
if (bytes_read > 0) {
ppp_feed(ppp, (guint8 *) buf, bytes_read);
ppp_record(ppp, TRUE, (guint8 *) buf, bytes_read);
ppp_feed(ppp, (guint8 *) buf, bytes_read);
}
if (status != G_IO_STATUS_NORMAL && status != G_IO_STATUS_AGAIN)
return FALSE;