summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/stellar_on_sapp/stellar_on_sapp_api.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/stellar_on_sapp/stellar_on_sapp_api.c b/src/stellar_on_sapp/stellar_on_sapp_api.c
index 9f4f0ae..a7b590a 100644
--- a/src/stellar_on_sapp/stellar_on_sapp_api.c
+++ b/src/stellar_on_sapp/stellar_on_sapp_api.c
@@ -133,13 +133,13 @@ void session_free_on_sapp(struct session *sess)
unsigned char session_state_update_on_sapp(struct streaminfo *stream, unsigned char stream_state, struct session *sess, const void *raw_pkt, enum packet_type type)
{
- if(sess && raw_pkt)
+ if(sess)
{
sess->state=(stream_state == OP_STATE_PENDING) ? SESSION_STATE_OPENING : SESSION_STATE_ACTIVE;
struct packet *pkt = &sess->cur_pkt;
pkt->raw_pkt=raw_pkt;
pkt->type=type;
- plugin_manager_on_session_ingress(sess, pkt);
+ if(raw_pkt)plugin_manager_on_session_ingress(sess, pkt);
return APP_STATE_GIVEME;
}
else