- Timestamp:
- Apr 6, 2017, 7:42:05 PM (8 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/docs/Changelog
r523 r524 1 1 4.2.1: 2 * fix for broken SetSocketPassword authentication 3 (reported by Todd Stansell) 2 4 * fix compile issue on Solaris 11 (reported by Rolf) 3 5 * fix alignment problem with semget() (reported by Rolf) -
trunk/src/sh_socket.c
r481 r524 809 809 810 810 #if defined(NEED_PASSWORD_AUTH) 811 char * check_password(char * message, int * client_uid, int talkfd)811 char * check_password(char * message, size_t msglen, int * client_uid, int talkfd) 812 812 { 813 813 char * cmd = NULL; … … 823 823 */ 824 824 if (0 == strcmp(goodpassword, message) && 825 strlen(goodpassword) < ( sizeof(message)/2))825 strlen(goodpassword) < (msglen/2)) 826 826 { 827 827 *client_uid = sh_socket_flaguid; … … 902 902 903 903 #elif defined(NEED_PASSWORD_AUTH) 904 cmd = check_password(message, &client_uid, talkfd);904 cmd = check_password(message, sizeof(message), &client_uid, talkfd); 905 905 906 906 #else
Note:
See TracChangeset
for help on using the changeset viewer.