From: Murray S. K. <ms...@se...> - 2007-05-06 01:10:28
|
Graham Murray wrote: > > The problem seems to be that the 'ulen' (length of user data) fields in > the 'key' and 'data' structures were uninitialised when calling > db->get(). Editing dkim-filter/stats.c and dkim-filter/dkim-stats.c to > make the following changes fixed the problem for me. > This looks right; the code should be setting "ulen" when retrieving keys using DB_DBT_USERMEM. Thanks for the diff! My understanding is that "ulen" is used to indicate to the library that "data" points to "ulen" bytes, and then "size" is updated to include the size of the retrieved record. When writing, only "size" is needed. I'll include your patch in 0.7.1, though I don't plan to post a new release until I have enough stuff accumulated to justify one. -MSK |