sr_session_send: pass transformed packet to datafeed callbacks

After the packet has been passed through the transformation modules,
the transformed data is in packet_in but the following code uses
the packet variable which still points to the original input.

This fixes bug #631.
This commit is contained in:
Daniel Glöckner 2015-08-22 17:39:39 +02:00 committed by Uwe Hermann
parent 1e6b5b9303
commit 4ec436c4d5
1 changed files with 1 additions and 0 deletions

View File

@ -770,6 +770,7 @@ SR_PRIV int sr_session_send(const struct sr_dev_inst *sdi,
packet_in = packet_out;
}
}
packet = packet_in;
/*
* If the last transform did output a packet, pass it to all datafeed