summaryrefslogtreecommitdiffstats
path: root/source/smbd/reply.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2001-06-23 00:22:14 +0000
committerJeremy Allison <jra@samba.org>2001-06-23 00:22:14 +0000
commit17c3faa367328d186d10f59f08549de0c608b16a (patch)
tree739ac590b257e9e004017a4eb109d72538a61a64 /source/smbd/reply.c
parenta2da1f91c1b08414592d5f014c8539575d0e9637 (diff)
downloadsamba-17c3faa367328d186d10f59f08549de0c608b16a.tar.gz
samba-17c3faa367328d186d10f59f08549de0c608b16a.tar.xz
samba-17c3faa367328d186d10f59f08549de0c608b16a.zip
Better fix for client name vulnarability.
Jeremy.
Diffstat (limited to 'source/smbd/reply.c')
-rw-r--r--source/smbd/reply.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/smbd/reply.c b/source/smbd/reply.c
index cd7b3fe6fe8..0c40e5f2b3a 100644
--- a/source/smbd/reply.c
+++ b/source/smbd/reply.c
@@ -96,6 +96,7 @@ int reply_special(char *inbuf,char *outbuf)
remote_machine[15] = 0;
trim_string(remote_machine," "," ");
strlower(remote_machine);
+ alpha_strcpy(remote_machine,remote_machine,sizeof(remote_machine)-1);
fstrcpy(local_machine,name1);
len = strlen(local_machine);
@@ -105,6 +106,7 @@ int reply_special(char *inbuf,char *outbuf)
}
trim_string(local_machine," "," ");
strlower(local_machine);
+ alpha_strcpy(local_machine,local_machine,sizeof(local_machine)-1);
if (name_type == 'R') {
/* We are being asked for a pathworks session ---