Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
BIND
Commits
c0bf5197
Commit
c0bf5197
authored
Sep 12, 2000
by
Brian Wellington
Browse files
remove unnecessary allocations
parent
356fdd60
Changes
3
Hide whitespace changes
Inline
Side-by-side
bin/dnssec/dnssec-keygen.c
View file @
c0bf5197
...
...
@@ -17,7 +17,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: dnssec-keygen.c,v 1.
39
2000/09/12 1
0:07
:4
6
bwelling Exp $ */
/* $Id: dnssec-keygen.c,v 1.
40
2000/09/12 1
1:50
:4
4
bwelling Exp $ */
#include <config.h>
...
...
@@ -171,8 +171,6 @@ main(int argc, char **argv) {
break
;
case
'r'
:
randomfile
=
isc_commandline_argument
;
if
(
randomfile
==
NULL
)
fatal
(
"out of memory"
);
break
;
case
'v'
:
endp
=
NULL
;
...
...
@@ -191,8 +189,6 @@ main(int argc, char **argv) {
}
setup_entropy
(
mctx
,
randomfile
,
&
ectx
);
if
(
randomfile
!=
NULL
)
isc_mem_free
(
mctx
,
randomfile
);
ret
=
dst_lib_init
(
mctx
,
ectx
,
ISC_ENTROPY_BLOCKING
|
ISC_ENTROPY_GOODONLY
);
if
(
ret
!=
ISC_R_SUCCESS
)
...
...
bin/dnssec/dnssec-makekeyset.c
View file @
c0bf5197
...
...
@@ -17,7 +17,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: dnssec-makekeyset.c,v 1.
39
2000/09/12 1
0:07
:4
7
bwelling Exp $ */
/* $Id: dnssec-makekeyset.c,v 1.
40
2000/09/12 1
1:50
:4
5
bwelling Exp $ */
#include <config.h>
...
...
@@ -144,10 +144,7 @@ main(int argc, char *argv[]) {
break
;
case
'r'
:
randomfile
=
isc_mem_strdup
(
mctx
,
isc_commandline_argument
);
if
(
randomfile
==
NULL
)
fatal
(
"out of memory"
);
randomfile
=
isc_commandline_argument
;
break
;
case
'v'
:
...
...
@@ -175,8 +172,6 @@ main(int argc, char *argv[]) {
usage
();
setup_entropy
(
mctx
,
randomfile
,
&
ectx
);
if
(
randomfile
!=
NULL
)
isc_mem_free
(
mctx
,
randomfile
);
eflags
=
ISC_ENTROPY_BLOCKING
;
if
(
!
pseudorandom
)
eflags
|=
ISC_ENTROPY_GOODONLY
;
...
...
bin/dnssec/dnssec-signkey.c
View file @
c0bf5197
...
...
@@ -17,7 +17,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: dnssec-signkey.c,v 1.3
5
2000/09/12 1
0:07
:4
8
bwelling Exp $ */
/* $Id: dnssec-signkey.c,v 1.3
6
2000/09/12 1
1:50
:4
6
bwelling Exp $ */
#include <config.h>
...
...
@@ -195,10 +195,7 @@ main(int argc, char *argv[]) {
break
;
case
'r'
:
randomfile
=
isc_mem_strdup
(
mctx
,
isc_commandline_argument
);
if
(
randomfile
==
NULL
)
fatal
(
"out of memory"
);
randomfile
=
isc_commandline_argument
;
break
;
case
'v'
:
...
...
@@ -231,8 +228,6 @@ main(int argc, char *argv[]) {
rdclass
=
dns_rdataclass_in
;
setup_entropy
(
mctx
,
randomfile
,
&
ectx
);
if
(
randomfile
!=
NULL
)
isc_mem_free
(
mctx
,
randomfile
);
eflags
=
ISC_ENTROPY_BLOCKING
;
if
(
!
pseudorandom
)
eflags
|=
ISC_ENTROPY_GOODONLY
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment