]> the.earth.li Git - onak.git/blobdiff - wotsap.c
Add ability to drop overly large packets
[onak.git] / wotsap.c
index 66dc94699d2dc12150e541b543b0e6e12c3d47c3..3aefc42012a4059324bfbad3ad7e080fc548ea81 100644 (file)
--- a/wotsap.c
+++ b/wotsap.c
@@ -19,8 +19,7 @@
  * 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., 51
- * Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ * this program.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #include <getopt.h>
@@ -203,7 +202,7 @@ int main(int argc, char *argv[])
 
        readconfig(configfile);
        initlogthing("wotsap", config.logfile);
-       dbctx = config.dbinit(true);
+       dbctx = config.dbinit(config.backend, true);
        if (dbctx != NULL) {
                inithash();
                wotsap(dbctx, dbctx->getfullkeyid(dbctx, keyid),
@@ -215,4 +214,5 @@ int main(int argc, char *argv[])
        }
        cleanuplogthing();
        cleanupconfig();
+       free(configfile);
 }