Skip to content

Commit

Permalink
[NETFILTER]: Fix nf_conntrack_ftp.c build.
Browse files Browse the repository at this point in the history
Noticed by Adrian Bunk.

Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
David S. Miller committed Sep 22, 2006
1 parent e5d679f commit 6a28ec8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion net/netfilter/nf_conntrack_ftp.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
#include <linux/ip.h>
#include <linux/ipv6.h>
#include <linux/ctype.h>
#include <linux/inet.h>
#include <net/checksum.h>
#include <net/tcp.h>

Expand Down Expand Up @@ -114,7 +115,8 @@ static struct ftp_search {
static int
get_ipv6_addr(const char *src, size_t dlen, struct in6_addr *dst, u_int8_t term)
{
int ret = in6_pton(src, min_t(size_t, dlen, 0xffff), dst, term, &end);
const char *end;
int ret = in6_pton(src, min_t(size_t, dlen, 0xffff), (u8 *)dst, term, &end);
if (ret > 0)
return (int)(end - src);
return 0;
Expand Down

0 comments on commit 6a28ec8

Please sign in to comment.