diff options
Diffstat (limited to 'source3/smbd')
-rw-r--r-- | source3/smbd/connection.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/smbd/connection.c b/source3/smbd/connection.c index 47579fa5f7..5a3fcc2975 100644 --- a/source3/smbd/connection.c +++ b/source3/smbd/connection.c @@ -79,6 +79,9 @@ static int count_fn( TDB_CONTEXT *the_tdb, TDB_DATA kbuf, TDB_DATA dbuf, void *u struct connections_data crec; struct count_stat *cs = (struct count_stat *)udp; + if (dbuf.dsize != sizeof(crec)) + return 0; + memcpy(&crec, dbuf.dptr, sizeof(crec)); if (crec.cnum == -1) |