Jeff Trawick 1ed95ad932 Fix invalid storage reference by apr_psprintf() when creating a string from salt[]. salt[] is not '\0'-terminated, so apr_psprintf() needs to be told the extent of the bytes to read.
It is easy to test old/new code standalone with valgrind;
jst insert the getkey() function into this template:

-----------getkey() goes here-----------------

int main(void)
{
    apr_pool_t *p;

    apr_initialize();
    apr_pool_create(&p, NULL);

    printf("%s\n", getkey(p));
    return 0;
}
2015-03-26 08:55:54 -07:00
..
2014-03-31 16:22:11 -07:00
2013-04-19 03:20:46 -04:00
2013-04-19 03:20:46 -04:00
2013-07-05 02:45:05 -07:00
2013-04-19 03:20:46 -04:00
2013-01-18 11:39:05 -08:00
2013-04-19 03:20:46 -04:00
2013-04-19 03:20:46 -04:00
2013-04-19 03:20:46 -04:00
2013-04-19 03:20:46 -04:00
2013-04-19 03:20:46 -04:00
2013-04-19 03:20:46 -04:00
2013-04-19 03:20:46 -04:00
2013-04-19 03:20:46 -04:00
2013-04-19 03:20:46 -04:00
2013-04-19 03:20:46 -04:00
2013-04-19 03:20:46 -04:00
2013-04-19 03:20:46 -04:00
2013-04-19 03:20:46 -04:00
2013-04-19 03:20:46 -04:00
2015-02-12 10:58:11 -08:00
2013-04-19 03:20:46 -04:00
2013-04-19 03:20:46 -04:00
2013-04-19 03:20:46 -04:00
2013-04-19 03:20:46 -04:00
2013-04-19 03:20:46 -04:00
2014-12-29 18:03:19 -05:00
2013-04-19 03:20:46 -04:00
2014-11-14 11:53:39 -08:00
2013-04-19 03:20:46 -04:00