]> rtime.felk.cvut.cz Git - frescor/frsh.git/commitdiff
FCB peer discovery: ignore peers with NULL identifier.
authorPavel Pisa <pisa@cmp.felk.cvut.cz>
Sun, 17 May 2009 22:22:37 +0000 (00:22 +0200)
committerPavel Pisa <pisa@cmp.felk.cvut.cz>
Sun, 17 May 2009 22:22:37 +0000 (00:22 +0200)
They are for sure not FCB relatives.
The reason, why empty identifier is sent by frm_gui
should be checked as well.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
fres/cbroker/fcb.c

index b9330859f26b8fb880dbb0293e373dabe921b323..19e54d20f3e3f64fa1cc7e042f7aedc6c8b601f2 100644 (file)
@@ -697,6 +697,10 @@ void peer_discovery_callback(const forb_orb peer_orb, const char *orb_id)
 #if 0
        ul_logmsg("peer discovered: %s (orb_id '%s')\n", server_id_str, orb_id);
 #endif
+
+       if (orb_id == NULL)
+               return;
+
        if (strcmp(orb_id, "org.frescor.fcb") == 0) {
                fosa_abs_time_t now;
                fosa_rel_time_t delay;