Update of /cvsroot/gqclient/gq/src
In directory usw-pr-cvs1:/tmp/cvs-serv7913
Modified Files:
configfile.c
Log Message:
* Fixed a nasty bug that caused encoded secrets to be decoded incorrectly.
Index: configfile.c
===================================================================
RCS file: /cvsroot/gqclient/gq/src/configfile.c,v
retrieving revision 1.27
retrieving revision 1.28
diff -C2 -d -r1.27 -r1.28
*** configfile.c 18 Sep 2002 09:42:13 -0000 1.27
--- configfile.c 18 Sep 2002 20:05:09 -0000 1.28
***************
*** 616,620 ****
memset(s->bindpw, 0, sizeof(s->bindpw));
! strncpy(s->bindpw, o->data, MAX(o->len, sizeof(s->bindpw) - 1));
} else if (s->bindpw[0] && s->pwencoding[0]) {
error_push(f->err_context,
--- 616,620 ----
memset(s->bindpw, 0, sizeof(s->bindpw));
! strncpy(s->bindpw, o->data, MIN(o->len, sizeof(s->bindpw) - 1));
} else if (s->bindpw[0] && s->pwencoding[0]) {
error_push(f->err_context,
|