1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-10 18:07:59 +00:00

When looking for the correct backend to use, look in the configuration

structure for the session, not the almost-dead global cfg.

[originally from svn r2457]
This commit is contained in:
Ben Harris 2003-01-05 11:31:51 +00:00
parent ac85d9b8c9
commit a7ba273b5b

View 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 Simon Tatham
* Copyright (c) 1999, 2002 Ben Harris * Copyright (c) 1999, 2002 Ben Harris
@ -162,7 +162,7 @@ void mac_opensession(void) {
*/ */
s->back = NULL; s->back = NULL;
for (i = 0; backends[i].backend != NULL; i++) 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; s->back = backends[i].backend;
break; break;
} }