X-Git-Url: http://git.ozlabs.org/?p=ppp.git;a=blobdiff_plain;f=pppd%2Ftdb.c;h=bdc58288da023b489983b994b1cc53b126de6e97;hp=62644171aa6ed8eee736bcde7e9ff13350207b01;hb=HEAD;hpb=3a4fec968174fd6f387d5ec872a56343f256f645 diff --git a/pppd/tdb.c b/pppd/tdb.c index 6264417..ecbee1f 100644 --- a/pppd/tdb.c +++ b/pppd/tdb.c @@ -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 */