[gq-commit] gq/src util.c,1.52,1.53
Status: Beta
Brought to you by:
sur5r
|
From: <sta...@us...> - 2002-10-12 05:33:12
|
Update of /cvsroot/gqclient/gq/src
In directory usw-pr-cvs1:/tmp/cvs-serv1026
Modified Files:
util.c
Log Message:
* Fixed core-dumping problems introduced just yesterday, Thanks go to
Dmitry Chernyak <dm...@in...> for testing a patch I sent him.
Index: util.c
===================================================================
RCS file: /cvsroot/gqclient/gq/src/util.c,v
retrieving revision 1.52
retrieving revision 1.53
diff -C2 -d -r1.52 -r1.53
*** util.c 11 Oct 2002 14:57:41 -0000 1.52
--- util.c 12 Oct 2002 05:33:08 -0000 1.53
***************
*** 209,214 ****
/* take care of special characters... */
! binddn = encoded_string(binddn);
! bindpw = encoded_string(bindpw);
switch (server->bindtype) {
--- 209,214 ----
/* take care of special characters... */
! if (binddn) binddn = encoded_string(binddn);
! if (bindpw) bindpw = encoded_string(bindpw);
switch (server->bindtype) {
***************
*** 242,247 ****
}
! free(binddn);
! free(bindpw);
binddn = bindpw = NULL;
--- 242,247 ----
}
! if (binddn) free(binddn);
! if (bindpw) free(bindpw);
binddn = bindpw = NULL;
|