Apply suggestions from code review

Co-authored-by: Willem Toorop <willem@nlnetlabs.nl>
This commit is contained in:
tcarpay
2021-06-23 10:53:11 +02:00
committed by GitHub
co-authored by Willem Toorop
parent 307613ea83
commit eb9891f4ed
5 changed files with 44 additions and 36 deletions
+2 -1
View File
@@ -72,7 +72,7 @@ int main(int argc, char *const *argv)
s = sldns_fp2wire_rr_buf(in, rr, &rr_len, &dname_len, &state);
if (s) {
fprintf( stderr, "parse error %d:%d: %s"
fprintf( stderr, "parse error %d:%d: %s\n"
, state.lineno, LDNS_WIREPARSE_OFFSET(s)
, sldns_get_errorstr_parse(s));
break;
@@ -103,5 +103,6 @@ int main(int argc, char *const *argv)
}
if (in)
fclose(in);
free(str);
return !in || s ? EXIT_FAILURE : EXIT_SUCCESS;
}