]> git.sur5r.net Git - openldap/commitdiff
trace illegal condition in backsql_strfcat
authorPierangelo Masarati <ando@openldap.org>
Sat, 31 Aug 2002 10:37:42 +0000 (10:37 +0000)
committerPierangelo Masarati <ando@openldap.org>
Sat, 31 Aug 2002 10:37:42 +0000 (10:37 +0000)
servers/slapd/back-sql/util.c

index 402d36fbab5aa077fa292080e8129bc5fcd5aa50..1b7e3379ff742b1272ed7ec9ab387e60fbe49fe9 100644 (file)
@@ -212,6 +212,8 @@ backsql_strfcat( struct berval *dest, ber_len_t *buflen, const char *fmt, ... )
 #endif /* BACKSQL_TRACE */
                }
 
+               assert( cstr );
+               
                AC_MEMCPY( dest->bv_val + cdlen, cstr, cslen + 1 );
                cdlen += cslen;
        }