diff options
| author | Gleb Smirnoff <glebius@FreeBSD.org> | 2006-10-17 10:59:39 +0000 |
|---|---|---|
| committer | Gleb Smirnoff <glebius@FreeBSD.org> | 2006-10-17 10:59:39 +0000 |
| commit | c6964951c65033df2a882cc51ae53732dde3e68e (patch) | |
| tree | 4286914a36965ab2f2fdae2a8ff26954e0a233f3 /sys | |
| parent | dfa8edfec6354e9ed3eb319b61efb94aeff27447 (diff) | |
Notes
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/netgraph/netgraph.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/sys/netgraph/netgraph.h b/sys/netgraph/netgraph.h index 313eac86b59b..fdf78c9d7556 100644 --- a/sys/netgraph/netgraph.h +++ b/sys/netgraph/netgraph.h @@ -962,17 +962,13 @@ _ngi_hook(item_p item, char *file, int line) ng_ID_t _dest = NGI_RETADDR(item); \ NGI_RETADDR(item) = 0; \ NGI_MSG(item) = resp; \ - if ((ng_address_ID((here), (item), \ + if ((error = ng_address_ID((here), (item), \ _dest, 0)) == 0) { \ SAVE_LINE(item); \ (error) = ng_snd_item((item), NG_QUEUE);\ - } else { \ - NG_FREE_ITEM(item); \ - (error) = EINVAL; \ } \ - } else { \ + } else \ NG_FREE_ITEM(item); \ - } \ (item) = NULL; \ } while (0) |
