chiark / gitweb /
server/peer.c: Only scan mobile peers when source address is unknown.
authorMark Wooding <mdw@distorted.org.uk>
Sun, 6 May 2012 23:27:20 +0000 (00:27 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Mon, 7 May 2012 14:32:06 +0000 (15:32 +0100)
server/peer.c

index f41b66e..68e32e5 100644 (file)
@@ -203,6 +203,7 @@ static int p_decrypt(peer **pp, addr *a, size_t n,
     if (nmobile) {
       T( trace(T_PEER, "peer: unknown source: trying mobile peers..."); )
       FOREACH_PEER(q, {
+       if (!(q->spec.f & PSF_MOBILE)) continue;
        if ((err = ksl_decrypt(&q->ks, ty, bin, bout)) == KSERR_DECRYPT) {
          T( trace(T_PEER, "peer: peer `%s' failed to decrypt",
                   p_name(q)); )