From d7e30fa7eed10c5576841b4868df0a9ec8c85328 Mon Sep 17 00:00:00 2001 From: Rob Crittenden Date: Thu, 6 Mar 2008 21:59:19 -0500 Subject: Use standard size and alignment for the packed data so it works on 64-bit hosts --- ipa-server/ipaserver/installutils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ipa-server/ipaserver/installutils.py b/ipa-server/ipaserver/installutils.py index eeefae50..dd410404 100644 --- a/ipa-server/ipaserver/installutils.py +++ b/ipa-server/ipaserver/installutils.py @@ -54,7 +54,7 @@ def verify_fqdn(host_name): # Compare the forward and reverse forward = rs[0].dns_name - addr = socket.inet_ntoa(struct.pack('L',rs[0].rdata.address)) + addr = socket.inet_ntoa(struct.pack('=L',rs[0].rdata.address)) addr = addr + ".in-addr.arpa." rs = dnsclient.query(addr, dnsclient.DNS_C_IN, dnsclient.DNS_T_PTR) -- cgit