blob: 317edab95ce4664104c7c2cfeea70ec8b9826f1f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
$NetBSD: patch-udns,v 1.2 2007/06/17 19:41:12 minskim Exp $
--- mDNSCore/uDNS.c.orig 2006-02-20 13:40:36.000000000 -0800
+++ mDNSCore/uDNS.c
@@ -3560,6 +3560,7 @@ mDNSlocal void getZoneData(mDNS *const m
AsyncOpResult result;
ntaContext *context = (ntaContext*)contextPtr;
smAction action;
+ mDNSIPPort zero = zeroIPPort;
// unused
(void)m;
@@ -3622,8 +3623,8 @@ mDNSlocal void getZoneData(mDNS *const m
result.zoneData.primaryAddr.type = mDNSAddrType_IPv4;
AssignDomainName(&result.zoneData.zoneName, &context->zone);
result.zoneData.zoneClass = context->zoneClass;
- result.zoneData.llqPort = context->findLLQPort ? context->llqPort : zeroIPPort;
- result.zoneData.updatePort = context->findUpdatePort ? context->updatePort : zeroIPPort;
+ result.zoneData.llqPort = context->findLLQPort ? context->llqPort : zero;
+ result.zoneData.updatePort = context->findUpdatePort ? context->updatePort : zero;
context->callback(mStatus_NoError, context->m, context->callbackInfo, &result);
goto cleanup;
|