avoid parsing SCTP noficiations as user data
This commit is contained in:
parent
7b54e32c63
commit
17878e267f
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue