diff options
| author | Sam Varshavchik | 2022-05-22 23:52:28 -0400 |
|---|---|---|
| committer | Sam Varshavchik | 2022-05-22 23:52:31 -0400 |
| commit | 83e37efc8ed785cd095eb585ff747e5702ec49b3 (patch) | |
| tree | 15aed6da6214e9a03d91be1754cd351175349945 /rfc1035/testlookup.c | |
| parent | 1ce81fa6af52651628a0bffcd8b15fdb459901a5 (diff) | |
| download | courier-libs-83e37efc8ed785cd095eb585ff747e5702ec49b3.tar.bz2 | |
gcc 12, autotool updates, sqwebmail fixes.
Diffstat (limited to 'rfc1035/testlookup.c')
| -rw-r--r-- | rfc1035/testlookup.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/rfc1035/testlookup.c b/rfc1035/testlookup.c index 869e806..29faafc 100644 --- a/rfc1035/testlookup.c +++ b/rfc1035/testlookup.c @@ -332,7 +332,7 @@ char ptrbuf[RFC1035_MAXNAMESIZE+1]; replyp=rfc1035_resolve(&res, RFC1035_OPCODE_QUERY, q_name, q_type[0], q_class); } - free(q_type); + if (!replyp) { perror(argv[0]); @@ -358,5 +358,6 @@ char ptrbuf[RFC1035_MAXNAMESIZE+1]; } rfc1035_replyfree(replyp); rfc1035_destroy_resolv(&res); + free(q_type); return (0); } |
