<rdar://problem/7451434> uDNS: Wide-area Bonjour browsing stopped working
authormparthasarathy@apple.com <mparthasarathy@apple.com@214c2c4a-bf3b-4dcf-9390-e4dd3010487d>
Wed, 9 Dec 2009 18:17:55 +0000 (18:17 +0000)
committermparthasarathy@apple.com <mparthasarathy@apple.com@214c2c4a-bf3b-4dcf-9390-e4dd3010487d>
Wed, 9 Dec 2009 18:17:55 +0000 (18:17 +0000)
git-svn-id: http://svn.macosforge.org/repository/mDNSResponder/trunk@6883 214c2c4a-bf3b-4dcf-9390-e4dd3010487d

mDNSCore/uDNS.c

index 8d24cc8..b3b024b 100755 (executable)
@@ -1133,10 +1133,10 @@ mDNSlocal void tcpCallback(TCPSocket *sock, void *context, mDNSBool ConnectionEs
                        // we store the minimal information i.e., the source port of the connection in the question itself.
                        
 
-                       if (q && q->tcp) srcPort = q->tcp->SrcPort;
+                       if (q && q->tcp) {srcPort = q->tcp->SrcPort; q->tcpSrcPort = srcPort;}
                        if (backpointer)
                                if (!q || !q->LongLived || m->SleepState)
-                                       { if (q && q->tcp) q->tcpSrcPort = q->tcp->SrcPort;*backpointer = mDNSNULL; DisposeTCPConn(tcpInfo); }
+                                       { *backpointer = mDNSNULL; DisposeTCPConn(tcpInfo); }
                        
                        if (rr && rr->resrec.RecordType == kDNSRecordTypeDeregistering)
                                {