git://ftp.safe.ca
/
safe
/
jmp
/
linux-2.6
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
nfs: Avoid overrun when copying client IP address string
[safe/jmp/linux-2.6]
/
fs
/
nfs
/
client.c
diff --git
a/fs/nfs/client.c
b/fs/nfs/client.c
index
63976c0
..
99ea196
100644
(file)
--- a/
fs/nfs/client.c
+++ b/
fs/nfs/client.c
@@
-1180,7
+1180,7
@@
static int nfs4_init_client(struct nfs_client *clp,
1, flags & NFS_MOUNT_NORESVPORT);
if (error < 0)
goto error;
-
mem
cpy(clp->cl_ipaddr, ip_addr, sizeof(clp->cl_ipaddr));
+
strl
cpy(clp->cl_ipaddr, ip_addr, sizeof(clp->cl_ipaddr));
error = nfs_idmap_new(clp);
if (error < 0) {