ports/dns/powerdns-devel/files/patch-pdns_backends_bind_bindbackend_hh
Dirk Meyer adaf6f04c5 - Added some patches to fix a memory leak in the bind backend
- Added a patch to fix a problem with the allow-axfr-ips option (host/32 netmask didn't work)
- Added an option to the configure dialog to compile the recursor
- Bumped PORTREVISION

PR:		59385
Submitted by:	tremere@cainites.net
2003-11-18 13:34:59 +00:00

39 lines
1.1 KiB
Text

--- pdns/backends/bind/bindbackend.hh.orig Sat Aug 23 16:35:35 2003
+++ pdns/backends/bind/bindbackend.hh Mon Nov 17 20:54:19 2003
@@ -58,21 +58,20 @@
bool tryRLock()
{
- // cout<<"[trylock!] "<<(void*)d_rwlock<<"/"<<getpid()<<endl;
- return pthread_rwlock_tryrdlock(d_rwlock)!=EBUSY;
+ // cout<<"[trylock!] "<<d_rwlock<<"/"<<getpid()<<endl;
+ return pthread_rwlock_tryrdlock(&d_rwlock)!=EBUSY;
}
void unlock()
{
- // cout<<"[unlock] "<<(void*)d_rwlock<<"/"<<getpid()<<endl;
- pthread_rwlock_unlock(d_rwlock);
+ // cout<<"[unlock] "<<d_rwlock<<"/"<<getpid()<<endl;
+ pthread_rwlock_unlock(&d_rwlock);
}
void lock()
{
- //cout<<"[writelock!] "<<(void*)d_rwlock<<"/"<<getpid()<<endl;
-
- pthread_rwlock_wrlock(d_rwlock);
+ // cout<<"[writelock!] "<<d_rwlock<<"/"<<getpid()<<endl;
+ pthread_rwlock_wrlock(&d_rwlock);
}
void setCheckInterval(time_t seconds);
@@ -80,7 +79,7 @@
time_t getCtime();
time_t d_checkinterval;
time_t d_lastcheck;
- pthread_rwlock_t *d_rwlock;
+ pthread_rwlock_t d_rwlock;
};