]> git.sur5r.net Git - openldap/commitdiff
Silence return val warnings in prev commit
authorHoward Chu <hyc@openldap.org>
Thu, 15 Sep 2005 02:02:27 +0000 (02:02 +0000)
committerHoward Chu <hyc@openldap.org>
Thu, 15 Sep 2005 02:02:27 +0000 (02:02 +0000)
servers/slapd/syncrepl.c

index a9d246e20eee15840b4b9cbdc951909ca39a883e..6a4e626a1ba4e7dca5a063d76aacad895ff592b0 100644 (file)
@@ -1145,6 +1145,7 @@ syncrepl_changelog_mods(
        struct berval *vals
 )
 {
+       return NULL;    /* FIXME */
 }
 
 static int
@@ -1211,6 +1212,7 @@ syncrepl_message_to_op(
                                        "syncrepl_message_to_op : unknown op %s",
                                        bvals[0].bv_val, 0, 0 );
                                ch_free( bvals );
+                               rc = -1;
                                goto done;
                        }
                        op->o_tag = modops[i].mask;
@@ -1232,8 +1234,10 @@ syncrepl_message_to_op(
        }
 
        /* If we didn't get a mod type or a target DN, bail out */
-       if ( op->o_tag == LBER_DEFAULT || BER_BVISNULL( &dn ))
+       if ( op->o_tag == LBER_DEFAULT || BER_BVISNULL( &dn )) {
+               rc = -1;
                goto done;
+       }
 
        op->o_callback = &cb;
 
@@ -1301,6 +1305,7 @@ done:
                        ch_free( prdn.bv_val );
        }
        ber_free ( ber, 0 );
+       return rc;
 }
 
 static int