1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-05 22:43:24 +00:00
freebsd-ports/security/ssh/files/patch-ag

34 lines
854 B
Plaintext
Raw Normal View History

--- 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 @@
1998-11-10 13:20:21 +00:00
debug("Kerberos invalid service name (%.100s).", server);
packet_send_debug("Kerberos invalid service name (%.100s).", server);
+#ifdef krb5_xfree
1998-11-10 13:20:21 +00:00
krb5_xfree(server);
+#else
+ free(server);
+#endif
1998-11-10 13:20:21 +00:00
return 0;
}
+#ifdef krb5_xfree
krb5_xfree(server);
+#else
+ free(server);
+#endif
1998-11-10 13:20:21 +00:00
/* 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);
1998-11-10 13:20:21 +00:00
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 */