[PATCH] don't crash loading idmap backends

Luke Howard lukeh at PADL.COM
Mon Jun 9 01:10:31 GMT 2003


Index: sam/idmap.c
===================================================================
RCS file: /home/project/cvs/samba/source/sam/idmap.c,v
retrieving revision 1.1.1.2
diff -u -r1.1.1.2 idmap.c
--- sam/idmap.c 2003/06/08 07:06:47     1.1.1.2
+++ sam/idmap.c 2003/06/09 01:07:46
@@ -118,7 +118,7 @@
                /* get any mode parameters passed in */
 
                if ( (pparams = strchr( remote_backend, ':' )) != NULL ) {
-                       pparams = '\0';
+                       *pparams = '\0';
                        pparams++;
                        fstrcpy( params, pparams );
                }

--
Luke Howard | PADL Software Pty Ltd | www.padl.com



More information about the samba-technical mailing list