Ticket #56331: kex-rekey-issue.macports.patch
File kex-rekey-issue.macports.patch, 818 bytes (added by habazut, 7 years ago) |
---|
-
sshconnect2.c
old new 223 223 orig = myproposal[PROPOSAL_SERVER_HOST_KEY_ALGS]; 224 224 xasprintf(&myproposal[PROPOSAL_SERVER_HOST_KEY_ALGS], 225 225 "%s,null", orig); 226 free(gss);227 226 } 228 227 } 229 228 #endif … … 274 273 /* remove ext-info from the KEX proposals for rekeying */ 275 274 myproposal[PROPOSAL_KEX_ALGS] = 276 275 compat_kex_proposal(options.kex_algorithms); 276 #ifdef GSSAPI 277 /* repair myproposal after it was crumpled by the */ 278 /* ext-info removal above */ 279 if (gss) { 280 orig = myproposal[PROPOSAL_KEX_ALGS]; 281 xasprintf(&myproposal[PROPOSAL_KEX_ALGS], 282 "%s,%s", gss, orig); 283 free(gss); 284 } 285 #endif 277 286 if ((r = kex_prop2buf(kex->my, myproposal)) != 0) 278 287 fatal("kex_prop2buf: %s", ssh_err(r)); 279 288