Changeset 524 for trunk/src/sh_socket.c
- Timestamp:
- Apr 6, 2017, 7:42:05 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.