avoid parsing SCTP noficiations as user data

This commit is contained in:
Harald Welte 2015-09-08 00:09:13 +02:00
parent 7b54e32c63
commit 17878e267f
1 changed files with 6 additions and 0 deletions

View File

@ -53,6 +53,12 @@ static int hnb_read_cb(struct osmo_fd *fd)
} 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) {