summaryrefslogtreecommitdiffstats
path: root/rfc1035
diff options
context:
space:
mode:
authorSam Varshavchik2020-05-08 06:47:09 -0400
committerSam Varshavchik2020-05-08 06:47:09 -0400
commitea9926077fe773102808184ed54a7b0327bcc237 (patch)
tree56101466e5bfd48fc60700c38405d92222e3db39 /rfc1035
parentc9982ab6a25c0cd95bfc0867dc8cab991786ddb5 (diff)
downloadcourier-libs-ea9926077fe773102808184ed54a7b0327bcc237.tar.bz2
Tweaks to the return codes.
Diffstat (limited to 'rfc1035')
-rw-r--r--rfc1035/rfc1035search.c6
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);
}