Commit 94b6d69d authored by Brian Wellington's avatar Brian Wellington
Browse files

If dns_sdb_register() fails, don't call dns_sdb_unregister().

parent 8befe9e5
......@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: dirdb.c,v 1.4 2000/11/18 01:29:10 bwelling Exp $ */
/* $Id: dirdb.c,v 1.5 2000/11/20 19:49:59 bwelling Exp $ */
#include <config.h>
......@@ -186,5 +186,6 @@ dirdb_init(void) {
*/
void
dirdb_clear(void) {
dns_sdb_unregister(&dirdb);
if (dirdb != NULL)
dns_sdb_unregister(&dirdb);
}
......@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: dirdb.c,v 1.4 2000/11/18 01:29:10 bwelling Exp $ */
/* $Id: dirdb.c,v 1.5 2000/11/20 19:49:59 bwelling Exp $ */
#include <config.h>
......@@ -186,5 +186,6 @@ dirdb_init(void) {
*/
void
dirdb_clear(void) {
dns_sdb_unregister(&dirdb);
if (dirdb != NULL)
dns_sdb_unregister(&dirdb);
}
......@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: pgsqldb.c,v 1.6 2000/11/20 19:34:12 bwelling Exp $ */
/* $Id: pgsqldb.c,v 1.7 2000/11/20 19:50:00 bwelling Exp $ */
#include <config.h>
......@@ -258,5 +258,6 @@ pgsqldb_init(void) {
*/
void
pgsqldb_clear(void) {
dns_sdb_unregister(&pgsqldb);
if (pgsqldb != NULL)
dns_sdb_unregister(&pgsqldb);
}
......@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: pgsqldb.c,v 1.6 2000/11/20 19:34:12 bwelling Exp $ */
/* $Id: pgsqldb.c,v 1.7 2000/11/20 19:50:00 bwelling Exp $ */
#include <config.h>
......@@ -258,5 +258,6 @@ pgsqldb_init(void) {
*/
void
pgsqldb_clear(void) {
dns_sdb_unregister(&pgsqldb);
if (pgsqldb != NULL)
dns_sdb_unregister(&pgsqldb);
}
......@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: timedb.c,v 1.3 2000/11/17 22:01:43 bwelling Exp $ */
/* $Id: timedb.c,v 1.4 2000/11/20 19:50:02 bwelling Exp $ */
#include <config.h>
......@@ -136,5 +136,6 @@ timedb_init(void) {
*/
void
timedb_clear(void) {
dns_sdb_unregister(&timedb);
if (timedb != NULL)
dns_sdb_unregister(&timedb);
}
......@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: timedb.c,v 1.3 2000/11/17 22:01:43 bwelling Exp $ */
/* $Id: timedb.c,v 1.4 2000/11/20 19:50:02 bwelling Exp $ */
#include <config.h>
......@@ -136,5 +136,6 @@ timedb_init(void) {
*/
void
timedb_clear(void) {
dns_sdb_unregister(&timedb);
if (timedb != NULL)
dns_sdb_unregister(&timedb);
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment