[Date Prev][Date Next] [Chronological] [Thread] [Top]

slurpd patch



The attached patch was applied this morning to -devel and -stable
which may resolve your problems.

A snapshot of -stable will be made later today or tomorrow for
those not using AnonCVS.

Kurt

Index: servers/slurpd/re.c
===================================================================
RCS file: /repo/OpenLDAP/pkg/ldap/servers/slurpd/re.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- re.c	1998/08/18 18:28:54	1.6
+++ re.c	1998/09/02 14:12:07	1.7
@@ -186,6 +186,7 @@
 	case T_DN:
 	    re->re_dn = ch_malloc( len + 1 );
 		memcpy( re->re_dn, value, len );
+		re->re_dn[ len ]='\0';
 	    state |= GOT_DN;
 	    break;
 	default:
@@ -227,6 +228,7 @@
 	if ( value != NULL ) {
 	    re->re_mods[ nml ].mi_val = ch_malloc( len + 1 );
 		memcpy( re->re_mods[ nml ].mi_val, value, len );
+		re->re_mods[ nml ].mi_val[ len ] = '\0';
 	    re->re_mods[ nml ].mi_len = len;
 	} else {
 	    re->re_mods[ nml ].mi_val = NULL;