X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/c83c79bd0d418b75be5bdc72897415ac15349f10..21226fd7e6d5e69dab830cc745e2dc59ed4a00cc:/mac/macterm.c diff --git a/mac/macterm.c b/mac/macterm.c index dad26883..4a75a0c6 100644 --- a/mac/macterm.c +++ b/mac/macterm.c @@ -115,12 +115,7 @@ void mac_startsession(Session *s) * Select protocol. This is farmed out into a table in a * separate file to enable an ssh-free variant. */ - s->back = NULL; - for (i = 0; backends[i].backend != NULL; i++) - if (backends[i].protocol == s->cfg.protocol) { - s->back = backends[i].backend; - break; - } + s->back = backend_from_proto(s->cfg.protocol); if (s->back == NULL) fatalbox("Unsupported protocol number found");