diff options
| author | Sam Varshavchik | 2020-05-08 06:47:09 -0400 |
|---|---|---|
| committer | Sam Varshavchik | 2020-05-08 06:47:09 -0400 |
| commit | ea9926077fe773102808184ed54a7b0327bcc237 (patch) | |
| tree | 56101466e5bfd48fc60700c38405d92222e3db39 /rfc1035 | |
| parent | c9982ab6a25c0cd95bfc0867dc8cab991786ddb5 (diff) | |
| download | courier-libs-ea9926077fe773102808184ed54a7b0327bcc237.tar.bz2 | |
Tweaks to the return codes.
Diffstat (limited to 'rfc1035')
| -rw-r--r-- | rfc1035/rfc1035search.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/rfc1035/rfc1035search.c b/rfc1035/rfc1035search.c index 526e7a0..4a484c1 100644 --- a/rfc1035/rfc1035search.c +++ b/rfc1035/rfc1035search.c @@ -238,6 +238,8 @@ int rfc1035_resolve_cname_multiple(struct rfc1035_res *res, 0 }; + *ptr=NULL; + if (nqueries == 0) return -1; @@ -261,8 +263,6 @@ int rfc1035_resolve_cname_multiple(struct rfc1035_res *res, } } - *ptr=NULL; - do // query loop { if (*ptr) @@ -307,8 +307,6 @@ int rfc1035_resolve_cname_multiple(struct rfc1035_res *res, if (good == 0 && cname == 0) { - rfc1035_replyfree( *ptr ); - *ptr=0; return (-1); } |
