diff options
author | nectar <nectar@FreeBSD.org> | 2002-08-30 21:23:27 +0000 |
---|---|---|
committer | nectar <nectar@FreeBSD.org> | 2002-08-30 21:23:27 +0000 |
commit | a77dba08ca7d8ad2f2dcd653974ac66df78cfa49 (patch) | |
tree | 6015f89700252fb05eb8fa267c46dba41913e9d8 /crypto/heimdal/appl/kx/common.c | |
parent | 69a91bec14ec3ad49d1c8a82c40a796755f9e4a3 (diff) | |
download | FreeBSD-src-a77dba08ca7d8ad2f2dcd653974ac66df78cfa49.zip FreeBSD-src-a77dba08ca7d8ad2f2dcd653974ac66df78cfa49.tar.gz |
Import of Heimdal Kerberos from KTH repository circa 2002/08/29.
Diffstat (limited to 'crypto/heimdal/appl/kx/common.c')
-rw-r--r-- | crypto/heimdal/appl/kx/common.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/crypto/heimdal/appl/kx/common.c b/crypto/heimdal/appl/kx/common.c index e1b0b05..223c6bb 100644 --- a/crypto/heimdal/appl/kx/common.c +++ b/crypto/heimdal/appl/kx/common.c @@ -33,7 +33,7 @@ #include "kx.h" -RCSID("$Id: common.c,v 1.65 2001/08/26 01:40:38 assar Exp $"); +RCSID("$Id: common.c,v 1.66 2002/08/22 16:23:28 joda Exp $"); char x_socket[MaxPathLen]; @@ -587,9 +587,11 @@ match_local_auth (Xauth* auth, char *tmp_disp; struct addrinfo *a; - tmp_disp = strndup (auth->number, auth->number_length); + tmp_disp = malloc(auth->number_length + 1); if (tmp_disp == NULL) return -1; + memcpy(tmp_disp, auth->number, auth->number_length); + tmp_disp[auth->number_length] = '\0'; auth_disp = atoi(tmp_disp); free (tmp_disp); if (auth_disp != disp_nr) |