]> andersk Git - openssh.git/blobdiff - sshconnect2.c
- andreas@cvs.openbsd.org 2009/10/24 11:13:54
[openssh.git] / sshconnect2.c
index 1e0e9d5e10e1fcb587db9d98b75ce5d94b30ea6f..937bb773dd647610b7d8a140d05ce5b08b628b95 100644 (file)
@@ -1,4 +1,4 @@
-/* $OpenBSD: sshconnect2.c,v 1.172 2009/10/23 01:57:11 djm Exp $ */
+/* $OpenBSD: sshconnect2.c,v 1.173 2009/10/24 11:13:54 andreas Exp $ */
 /*
  * Copyright (c) 2000 Markus Friedl.  All rights reserved.
  * Copyright (c) 2008 Damien Miller.  All rights reserved.
@@ -152,6 +152,11 @@ ssh_kex2(char *host, struct sockaddr *hostaddr)
 
        dispatch_run(DISPATCH_BLOCK, &kex->done, kex);
 
+       if (options.use_roaming && !kex->roaming) {
+               debug("Roaming not allowed by server");
+               options.use_roaming = 0;
+       }
+
        session_id2 = kex->session_id;
        session_id2_len = kex->session_id_len;
 
This page took 0.030452 seconds and 4 git commands to generate.