chiark / gitweb /
test-example: Provide clean target in Makefile
[secnet.git] / site.c
diff --git a/site.c b/site.c
index 379ab0d96976aefc90f5928c60a6e5b492165144..c452011e5538a6c7458928d9a0e3853ade0be1f5 100644 (file)
--- a/site.c
+++ b/site.c
@@ -1631,7 +1631,7 @@ static bool_t site_incoming(void *sst, struct buffer_if *buf,
            if (process_msg1(st,buf,source,&named_msg)) {
                slog(st,LOG_SETUP_INIT,"key setup initiated by peer");
                bool_t entered=enter_new_state(st,SITE_SENTMSG2);
-               if (entered && st->address)
+               if (entered && st->address && st->local_mobile)
                    /* We must do this as the very last thing, because
                       the resolver callback might reenter us. */
                    ensure_resolving(st);