diff options
author | Jakob Schlyter <jakob@cvs.openbsd.org> | 2010-02-25 08:17:08 +0000 |
---|---|---|
committer | Jakob Schlyter <jakob@cvs.openbsd.org> | 2010-02-25 08:17:08 +0000 |
commit | e9fabe069b2b7f9c7710f1dc07ca52bb4b710788 (patch) | |
tree | 848ed9b08795895ecf8217f3f170740ba7744bb9 /usr.sbin/nsd/nsd-notify.c | |
parent | 64ba2f66bf18c202be911d4cb2c1840e9af67ba8 (diff) |
make nsd compile on gcc2 platforms; from miod@
Diffstat (limited to 'usr.sbin/nsd/nsd-notify.c')
-rw-r--r-- | usr.sbin/nsd/nsd-notify.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/nsd/nsd-notify.c b/usr.sbin/nsd/nsd-notify.c index 54be9bed91a..b48ebc7191b 100644 --- a/usr.sbin/nsd/nsd-notify.c +++ b/usr.sbin/nsd/nsd-notify.c @@ -184,14 +184,14 @@ add_key(region_type* region, const char* opt, tsig_algorithm_type** algo) /* parse -y key:secret_base64 format option */ char* delim = strchr(opt, ':'); char* delim2 = NULL; - - if (delim) - delim2 = strchr(delim+1, ':'); - tsig_key_type *key = (tsig_key_type*)region_alloc( region, sizeof(tsig_key_type)); size_t len; int sz; + + if (delim) + delim2 = strchr(delim+1, ':'); + if(!key) { log_msg(LOG_ERR, "region_alloc failed (add_key)"); return 0; |