From: Pierangelo Masarati Date: Sat, 29 Nov 2003 18:00:07 +0000 (+0000) Subject: fix 'control reaches end of non-void function' X-Git-Tag: OPENLDAP_REL_ENG_2_1_MP~338 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=3aa27601e12bc6891d3e750f5bfd0eb9b5452b6f;p=openldap fix 'control reaches end of non-void function' --- diff --git a/servers/slapd/back-meta/cache-search.c b/servers/slapd/back-meta/cache-search.c index c0d0beda11..cce48b4bb8 100644 --- a/servers/slapd/back-meta/cache-search.c +++ b/servers/slapd/back-meta/cache-search.c @@ -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; }