Commit 0b81e99d authored by Brian Wellington's avatar Brian Wellington

1144. [bug] rndc-confgen would crash if both the -a and -t

                        options were specified. [RT #2159]
parent bbc985b3
1144. [bug] rndc-confgen would crash if both the -a and -t
options were specified. [RT #2159]
1143. [bug] When a trusted-keys statement was present and named
was built without crypto support, it would leak memory.
......
......@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: rndc-confgen.c,v 1.12 2001/11/27 20:59:52 gson Exp $ */
/* $Id: rndc-confgen.c,v 1.13 2001/11/28 21:44:19 bwelling Exp $ */
#include <config.h>
......@@ -280,8 +280,9 @@ main(int argc, char **argv) {
char *buf;
len = strlen(chrootdir) + strlen(keyfile) + 2;
buf = isc_mem_get(mctx, len);
if (buf != NULL) {
fprintf(stderr, "isc_mem_get(%d) failed\n", len);
if (buf == NULL) {
fprintf(stderr, "isc_mem_get(%d) failed\n",
len);
goto cleanup;
}
snprintf(buf, len, "%s/%s", chrootdir, keyfile);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment