diff options
author | Gleb Smirnoff <glebius@FreeBSD.org> | 2005-02-12 16:26:36 +0000 |
---|---|---|
committer | Gleb Smirnoff <glebius@FreeBSD.org> | 2005-02-12 16:26:36 +0000 |
commit | d96bd8d1441d0856370d75b9df9604ac824fd314 (patch) | |
tree | 4c69b004c2cfdb83e76eeec2744cebd72b93d570 /sys/netgraph | |
parent | 35f855d9f9e48c9e7df618a0b43605a6181b45a5 (diff) | |
download | src-d96bd8d1441d0856370d75b9df9604ac824fd314.tar.gz src-d96bd8d1441d0856370d75b9df9604ac824fd314.zip |
Allocate enough space for new tag.
Pointy hat to: glebius
Notes
Notes:
svn path=/head/; revision=141743
Diffstat (limited to 'sys/netgraph')
-rw-r--r-- | sys/netgraph/ng_ksocket.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/netgraph/ng_ksocket.c b/sys/netgraph/ng_ksocket.c index 023d7ccbe513..161b485f802d 100644 --- a/sys/netgraph/ng_ksocket.c +++ b/sys/netgraph/ng_ksocket.c @@ -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; |