summaryrefslogtreecommitdiff
path: root/sshconnect2.c
diff options
context:
space:
mode:
Diffstat (limited to 'sshconnect2.c')
-rw-r--r--sshconnect2.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/sshconnect2.c b/sshconnect2.c
index 0605e4e5f..f91f5b274 100644
--- a/sshconnect2.c
+++ b/sshconnect2.c
@@ -27,8 +27,13 @@ RCSID("$OpenBSD: sshconnect2.c,v 1.118 2003/05/14 02:15:47 markus Exp $");
27 27
28#ifdef KRB5 28#ifdef KRB5
29#include <krb5.h> 29#include <krb5.h>
30#ifndef HEIMDAL
31#define krb5_get_err_text(context,code) error_message(code)
32#endif /* !HEIMDAL */
30#endif 33#endif
31 34
35#include "openbsd-compat/sys-queue.h"
36
32#include "ssh.h" 37#include "ssh.h"
33#include "ssh2.h" 38#include "ssh2.h"
34#include "xmalloc.h" 39#include "xmalloc.h"
@@ -1206,7 +1211,12 @@ userauth_kerberos(Authctxt *authctxt)
1206 packet_put_string(ap.data, ap.length); 1211 packet_put_string(ap.data, ap.length);
1207 packet_send(); 1212 packet_send();
1208 1213
1214#ifdef HEIMDAL
1209 krb5_data_free(&ap); 1215 krb5_data_free(&ap);
1216#else
1217# warning "XXX - leaks ap data on MIT kerberos"
1218#endif
1219
1210 return (1); 1220 return (1);
1211} 1221}
1212#endif 1222#endif