commit | 17878e267f639401ed9ec3285fdf00f85eb1a569 | [log] [tgz] |
---|---|---|
author | Harald Welte <laforge@gnumonks.org> | Tue Sep 08 00:09:13 2015 +0200 |
committer | Harald Welte <laforge@gnumonks.org> | Tue Sep 08 00:09:13 2015 +0200 |
tree | 3c5a1c3d9ef7fb32f6fb0a898154facf498a4092 | |
parent | 7b54e32c63341ef6d12ec80e295c57f2c447fb48 [diff] [blame] |
avoid parsing SCTP noficiations as user data
diff --git a/src/hnbgw.c b/src/hnbgw.c index 0875524..de401dd 100644 --- a/src/hnbgw.c +++ b/src/hnbgw.c
@@ -53,6 +53,12 @@ } else msgb_put(msg, rc); + if (flags & MSG_NOTIFICATION) { + LOGP(DMAIN, LOGL_INFO, "Ignoring SCTP notification\n"); + msgb_free(msg); + return 0; + } + sinfo.sinfo_ppid = ntohl(sinfo.sinfo_ppid); switch (sinfo.sinfo_ppid) {