diff options
| author | Matthew Dillon <dillon@FreeBSD.org> | 2003-01-12 01:37:13 +0000 |
|---|---|---|
| committer | Matthew Dillon <dillon@FreeBSD.org> | 2003-01-12 01:37:13 +0000 |
| commit | cd72f2180bfff020d03180e6eba1c3a0e0125468 (patch) | |
| tree | 19da0d56c468b8e0f6d0361d7d39157f561aa69f /contrib/ipfilter | |
| parent | 1bd6f83d4d49a87f27dbfe50f9717a182e9f1f47 (diff) | |
Notes
Diffstat (limited to 'contrib/ipfilter')
| -rw-r--r-- | contrib/ipfilter/ipsend/sock.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/contrib/ipfilter/ipsend/sock.c b/contrib/ipfilter/ipsend/sock.c index 46a399aefba00..cb9dba862a846 100644 --- a/contrib/ipfilter/ipsend/sock.c +++ b/contrib/ipfilter/ipsend/sock.c @@ -222,7 +222,7 @@ struct tcpiphdr *ti; } s = (struct socket *)calloc(1, sizeof(*s)); - if (KMCPY(s, f->f_data, sizeof(*s)) == -1) + if (KMCPY(s, f->un_data.socket, sizeof(*s)) == -1) { fprintf(stderr, "read(%#x,%#x,%d) - f_data - failed\n", o[fd], s, sizeof(*s)); @@ -316,10 +316,11 @@ struct tcpiphdr *ti; } s = (struct socket *)calloc(1, sizeof(*s)); - if (KMCPY(s, f->f_data, sizeof(*s)) == -1) + if (KMCPY(s, f->un_data.socket, sizeof(*s)) == -1) { fprintf(stderr, "read(%#lx,%#lx,%lu) - f_data - failed\n", - (u_long)f->f_data, (u_long)s, (u_long)sizeof(*s)); + (u_long)f->un_data.socket, (u_long)s, + (u_long)sizeof(*s)); return NULL; } |
