+1144. [bug] rndc-confgen would crash if both the -a and -t
+ options were specified. [RT #2159]
+
1142. [bug] dnssec-signzone would fail to delete temporary files
in some failure cases. [RT #2144]
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: rndc-confgen.c,v 1.9.2.2 2001/11/28 01:58:18 marka Exp $ */
+/* $Id: rndc-confgen.c,v 1.9.2.3 2001/11/28 21:51:51 gson Exp $ */
#include <config.h>
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);