use session owner filehandle if multicasting

This commit is contained in:
Ralph Metzler 2015-12-11 14:35:44 +01:00
parent 26c6aee619
commit fb7cad2ddf
1 changed files with 7 additions and 2 deletions

View File

@ -1445,9 +1445,14 @@ static int setup_session(struct oscon *con, int newtrans)
}
}
if (sess->nsfd < 0) {
if (conform && !owner && sess->trans.mcast) {
if (!ownsess->trans.mcast)
return -455;
sess->nsfd = ownsess->nsfd;
} else
#ifndef IGNORE_NS
if (get_ns(sess) < 0)
return -455;
if (get_ns(sess) < 0)
return -455;
#endif
newtrans = 1;
}