mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-17 15:27:36 +00:00
Allocate enough space for new tag.
Pointy hat to: glebius
This commit is contained in:
parent
35f855d9f9
commit
d96bd8d144
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=141743
@ -1119,7 +1119,8 @@ ng_ksocket_incoming2(node_p node, hook_p hook, void *arg1, int waitflag)
|
||||
struct sa_tag *stag;
|
||||
|
||||
stag = (struct sa_tag *)m_tag_alloc(NGM_KSOCKET_COOKIE,
|
||||
NG_KSOCKET_TAG_SOCKADDR, sa->sa_len, M_NOWAIT);
|
||||
NG_KSOCKET_TAG_SOCKADDR, sizeof(ng_ID_t) +
|
||||
sa->sa_len, M_NOWAIT);
|
||||
if (stag == NULL) {
|
||||
FREE(sa, M_SONAME);
|
||||
goto sendit;
|
||||
|
Loading…
Reference in New Issue
Block a user