ugly fix for crays

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5485 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Johan Danielsson
1999-03-10 15:36:51 +00:00
parent b4832c0fe7
commit 41f27dd300

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 1995, 1996, 1997, 1998 Kungliga Tekniska H<>gskolan
* Copyright (c) 1995, 1996, 1997, 1998, 1999 Kungliga Tekniska H<>gskolan
* (Royal Institute of Technology, Stockholm, Sweden).
* All rights reserved.
*
@@ -124,8 +124,14 @@ parse_reply(unsigned char *data, int len)
return NULL;
p = data;
#if 0
/* doesn't work on Crays */
memcpy(&r->h, p, sizeof(HEADER));
p += sizeof(HEADER);
#else
memcpy(&r->h, p, 12); /* XXX this will probably be mostly garbage */
p += 12;
#endif
status = dn_expand(data, data + len, p, host, sizeof(host));
if(status < 0){
dns_free_data(r);