When looking for the correct backend to use, look in the configuration
authorben <ben@cda61777-01e9-0310-a592-d414129be87e>
Sun, 5 Jan 2003 11:31:51 +0000 (11:31 +0000)
committerben <ben@cda61777-01e9-0310-a592-d414129be87e>
Sun, 5 Jan 2003 11:31:51 +0000 (11:31 +0000)
structure for the session, not the almost-dead global cfg.

git-svn-id: svn://svn.tartarus.org/sgt/putty@2457 cda61777-01e9-0310-a592-d414129be87e

mac/macterm.c

index af46d6d..220fa2c 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: macterm.c,v 1.34 2003/01/05 10:52:56 ben Exp $ */
+/* $Id: macterm.c,v 1.35 2003/01/05 11:31:51 ben Exp $ */
 /*
  * Copyright (c) 1999 Simon Tatham
  * Copyright (c) 1999, 2002 Ben Harris
@@ -162,7 +162,7 @@ void mac_opensession(void) {
      */
     s->back = NULL;
     for (i = 0; backends[i].backend != NULL; i++)
-       if (backends[i].protocol == cfg.protocol) {
+       if (backends[i].protocol == s->cfg.protocol) {
            s->back = backends[i].backend;
            break;
        }