Commit 6a28ec8c authored by David S. Miller's avatar David S. Miller

[NETFILTER]: Fix nf_conntrack_ftp.c build.

Noticed by Adrian Bunk.
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent e5d679f3
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
#include <linux/ip.h> #include <linux/ip.h>
#include <linux/ipv6.h> #include <linux/ipv6.h>
#include <linux/ctype.h> #include <linux/ctype.h>
#include <linux/inet.h>
#include <net/checksum.h> #include <net/checksum.h>
#include <net/tcp.h> #include <net/tcp.h>
...@@ -114,7 +115,8 @@ static struct ftp_search { ...@@ -114,7 +115,8 @@ static struct ftp_search {
static int static int
get_ipv6_addr(const char *src, size_t dlen, struct in6_addr *dst, u_int8_t term) 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) if (ret > 0)
return (int)(end - src); return (int)(end - src);
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment