diff options
author | David S. Miller <davem@davemloft.net> | 2014-06-12 01:02:55 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-06-12 01:02:55 +0200 |
commit | 902455e00720018d1dbd38327c3fd5bda6d844ee (patch) | |
tree | 02fc906c5bc318220ad4827c6eac2521b9d1fbbf /net/dns_resolver | |
parent | net/fsl: xgmac_mdio is dependent on OF_MDIO (diff) | |
parent | net/core: Add VF link state control policy (diff) | |
download | linux-902455e00720018d1dbd38327c3fd5bda6d844ee.tar.xz linux-902455e00720018d1dbd38327c3fd5bda6d844ee.zip |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
Conflicts:
net/core/rtnetlink.c
net/core/skbuff.c
Both conflicts were very simple overlapping changes.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dns_resolver')
-rw-r--r-- | net/dns_resolver/dns_query.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/net/dns_resolver/dns_query.c b/net/dns_resolver/dns_query.c index 5b499589613f..9acec61f5433 100644 --- a/net/dns_resolver/dns_query.c +++ b/net/dns_resolver/dns_query.c @@ -149,7 +149,9 @@ int dns_query(const char *type, const char *name, size_t namelen, if (!*_result) goto put; - memcpy(*_result, upayload->data, len + 1); + memcpy(*_result, upayload->data, len); + *_result[len] = '\0'; + if (_expiry) *_expiry = rkey->expiry; |