diff options
author | Jeremy Allison <jra@samba.org> | 2001-06-23 00:28:36 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2001-06-23 00:28:36 +0000 |
commit | 3f1df88aade8b1092d5e7b29c6ddfd5bfd6455dd (patch) | |
tree | aecd171f2167581eb23af1e66ac903046e2e59cb | |
parent | 4905806659c79fdcf28103a16afb9a30dfdd8afb (diff) | |
download | samba-3f1df88aade8b1092d5e7b29c6ddfd5bfd6455dd.tar.gz samba-3f1df88aade8b1092d5e7b29c6ddfd5bfd6455dd.tar.xz samba-3f1df88aade8b1092d5e7b29c6ddfd5bfd6455dd.zip |
Better fix for client name vulnarability.
Jeremy.
-rw-r--r-- | source/smbd/reply.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/smbd/reply.c b/source/smbd/reply.c index 9d91cb9d686..cd1db2818fc 100644 --- a/source/smbd/reply.c +++ b/source/smbd/reply.c @@ -97,6 +97,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); @@ -106,6 +107,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 --- |