[sr-dev] git:mariuszbihlei/dnssec: modules/dnssec Added copyright notices

Marius Zbihlei marius.zbihlei at 1and1.ro
Sat Mar 30 12:20:13 CET 2013


Module: sip-router
Branch: mariuszbihlei/dnssec
Commit: f88dd6d7197af1e4bf5a9e24cdf9ac8975ae2345
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=f88dd6d7197af1e4bf5a9e24cdf9ac8975ae2345

Author: Marius Zbihlei <mariuszbi at gmai.com>
Committer: Marius Zbihlei <mariuszbi at gmai.com>
Date:   Sat Mar 30 11:19:24 2013 +0000

modules/dnssec Added copyright notices

Also forgot a memset..

---

 modules/dnssec/dnssec_func.c |   27 +++++++++++++++++++++++++++
 modules/dnssec/dnssec_func.h |   28 ++++++++++++++++++++++++++++
 modules/dnssec/dnssec_mod.c  |    1 +
 3 files changed, 56 insertions(+), 0 deletions(-)

diff --git a/modules/dnssec/dnssec_func.c b/modules/dnssec/dnssec_func.c
index 0ae5e90..94fdc3f 100644
--- a/modules/dnssec/dnssec_func.c
+++ b/modules/dnssec/dnssec_func.c
@@ -1,3 +1,30 @@
+/*
+ * $Id$
+ *
+ * DNSSEC module
+ *
+ * Copyright (C) 2013 mariuszbi at gmail.com
+ *
+ * This file is part of Kamailio, a free SIP server.
+ *
+ * Kamailio is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version
+ *
+ * Kamailio is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License 
+ * along with this program; if not, write to the Free Software 
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+ *
+ * History:
+ * --------
+ *  2013-03	initial implementation
+ */
 
 #include "validator/validator-config.h"
 #include <validator/validator.h>
diff --git a/modules/dnssec/dnssec_func.h b/modules/dnssec/dnssec_func.h
index 363fe2f..25a7e7d 100644
--- a/modules/dnssec/dnssec_func.h
+++ b/modules/dnssec/dnssec_func.h
@@ -1,3 +1,31 @@
+/*
+ * $Id$
+ *
+ * DNSSEC module
+ *
+ * Copyright (C) 2013 mariuszbi at gmail.com
+ *
+ * This file is part of Kamailio, a free SIP server.
+ *
+ * Kamailio is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version
+ *
+ * Kamailio is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License 
+ * along with this program; if not, write to the Free Software 
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+ *
+ * History:
+ * --------
+ *  2013-03	initial implementation
+ */
+
 #ifndef DNSSEC_FUNC_H
 #define DNSSEC_FUNC_H
 
diff --git a/modules/dnssec/dnssec_mod.c b/modules/dnssec/dnssec_mod.c
index e5654b0..55d4266 100644
--- a/modules/dnssec/dnssec_mod.c
+++ b/modules/dnssec/dnssec_mod.c
@@ -90,6 +90,7 @@ struct module_exports exports= {
 static void load_dns(void)
 {
 	struct dns_func_t *f = pkg_malloc(sizeof(struct dns_func_t));
+	memset(f, 0, sizeof(struct dns_func_t));
 	f->sr_res_init = dnssec_res_init;
 	f->sr_gethostbyname = dnssec_gethostbyname;
 	f->sr_gethostbyname2 = dnssec_gethostbyname2;




More information about the sr-dev mailing list