]> git.ozlabs.org Git - ppp.git/blobdiff - pppd/tdb.c
pppd.8: Document netmask option
[ppp.git] / pppd / tdb.c
index 62644171aa6ed8eee736bcde7e9ff13350207b01..ecbee1f7dcecde8501ba28cdd3f4fd5c0f32626e 100644 (file)
@@ -933,7 +933,7 @@ static int tdb_new_database(TDB_CONTEXT *tdb, int hash_size)
 
        /* We make it up in memory, then write it out if not internal */
        size = sizeof(struct tdb_header) + (hash_size+1)*sizeof(tdb_off);
-       if (!(newdb = calloc(size, 1)))
+       if (!(newdb = calloc(1, size)))
                return TDB_ERRCODE(TDB_ERR_OOM, -1);
 
        /* Fill in the header */