mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-18 00:10:04 +00:00
48500b76a6
Submitted by: Issei Suzuki <issei@jp.FreeBSD.ORG> Upgrade to 1.2.27. # I'm not maintainer but it seems that torstenb is too busy to # look the PR and many people want new version ssh port.
34 lines
854 B
Plaintext
34 lines
854 B
Plaintext
--- auth-kerberos.c.orig Sun Jun 6 02:01:32 1999
|
|
+++ auth-kerberos.c Sun Jun 6 02:01:33 1999
|
|
@@ -120,10 +120,18 @@
|
|
|
|
debug("Kerberos invalid service name (%.100s).", server);
|
|
packet_send_debug("Kerberos invalid service name (%.100s).", server);
|
|
+#ifdef krb5_xfree
|
|
krb5_xfree(server);
|
|
+#else
|
|
+ free(server);
|
|
+#endif
|
|
return 0;
|
|
}
|
|
+#ifdef krb5_xfree
|
|
krb5_xfree(server);
|
|
+#else
|
|
+ free(server);
|
|
+#endif
|
|
|
|
/* Extract the users name from the ticket client principal */
|
|
problem = krb5_copy_principal(ssh_context, ticket->enc_part2->client,
|
|
@@ -159,7 +167,11 @@
|
|
packet_put_string((char *) reply.data, reply.length);
|
|
packet_send();
|
|
packet_write_wait();
|
|
+#ifdef krb5_xfree
|
|
krb5_xfree(reply.data);
|
|
+#else
|
|
+ krb5_free_data_contents(ssh_context, &reply);
|
|
+#endif
|
|
return 1;
|
|
}
|
|
#endif /* KRB5 */
|