]> git.sur5r.net Git - openldap/commitdiff
fix 'control reaches end of non-void function'
authorPierangelo Masarati <ando@openldap.org>
Sat, 29 Nov 2003 18:00:07 +0000 (18:00 +0000)
committerPierangelo Masarati <ando@openldap.org>
Sat, 29 Nov 2003 18:00:07 +0000 (18:00 +0000)
servers/slapd/back-meta/cache-search.c

index c0d0beda11249219f53f141229d942ea869c267d..cce48b4bb8aad8b4f334944b0f6cd7f9a6d45e92 100644 (file)
@@ -1836,9 +1836,14 @@ cache_back_sentry(
 
                op->o_callback = cb; 
                return 0; 
+
        } else if (rs->sr_type == REP_RESULT) { 
                op->o_callback = NULL; 
                send_ldap_result( op, rs ); 
                return 0; 
        }
+
+       /* FIXME: not handled? */
+       assert(0);
+       return -1;
 }