Closed julek-wolfssl closed 4 months ago
When the getopt(cntxt, NULL, "sasldb_path", &p, NULL) path is taken then SASLDB_FREEPATH is called on a value that can't be free'd and causes a segfault.
getopt(cntxt, NULL, "sasldb_path", &p, NULL)
The patch is a bit verbose, I would have just called the flag do_freepath but otherwise fine.
do_freepath
When the
getopt(cntxt, NULL, "sasldb_path", &p, NULL)
path is taken then SASLDB_FREEPATH is called on a value that can't be free'd and causes a segfault.