28 Oct 2008 01:47
Re: bug: Partial results from DB lookup causing parsing problems
Simon Horman <horms <at> verge.net.au>
2008-10-28 00:47:12 GMT
2008-10-28 00:47:12 GMT
On Mon, Oct 27, 2008 at 11:25:40AM +0000, Simon Fraser wrote: > > I initially hit 'reply' rather than 'reply to all', so I'll re-send this > to the list. > > > I don't have an LDAP db handy to test against, so could > > you please test the following change for me to see if > > it helps your problem. If not, I'll dig deeper into the problem. > > Many thanks for getting back to me so quickly. I've patched a clean > version of 1.17.1, and tested. > > > + if (returns[0]) > > + user_str = &returns[0]; > > + if (returns[1]) > > + server_str = &returns[1]; > > + if (returns[2]) > > + port_str = &returns[2]; > > The lookup was failing, and I've traced it to the lines above. These > pointers are directed to &returns, but a few lines later, all the values > of returns are passed to free(): > > for (count = 0; count < attrcount; count++) > if (returns[count] != NULL) > free(returns[count]); > free(returns); > > I've replaced the lines quoted above with ones like: >(Continue reading)
RSS Feed