OpenBSD CVS

CVS log for src/usr.sbin/smtpd/resolver.c


[BACK] Up to [local] / src / usr.sbin / smtpd

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.7 / (download) - annotate - [select for diffs], Mon Jun 14 17:58:16 2021 UTC (2 years, 11 months ago) by eric
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, HEAD
Changes since 1.6: +2 -10 lines
Diff to previous 1.6 (colored)

add required headers for smtpd.h and remove unnecessary ones in other files.

ok jung@

Revision 1.6 / (download) - annotate - [select for diffs], Wed Dec 23 15:42:03 2020 UTC (3 years, 5 months ago) by eric
Branch: MAIN
CVS Tags: OPENBSD_6_9_BASE, OPENBSD_6_9
Changes since 1.5: +38 -31 lines
Diff to previous 1.5 (colored)

Fix a memory leak: use a single memory allocation for struct addrinfo and
the sockaddr it contains, as expected by freeaddrinfo().
Move the allocation to a helper function for clarity.

comments from martijn@ millert@

ok millert@

Revision 1.5 / (download) - annotate - [select for diffs], Thu Jun 13 11:45:35 2019 UTC (4 years, 11 months ago) by eric
Branch: MAIN
CVS Tags: OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6
Changes since 1.4: +97 -4 lines
Diff to previous 1.4 (colored)

extend the resolver interface to delegate res_query() calls to the lka.

ok gilles@ sunil@

Revision 1.4 / (download) - annotate - [select for diffs], Mon Nov 12 12:31:49 2018 UTC (5 years, 6 months ago) by eric
Branch: MAIN
CVS Tags: OPENBSD_6_5_BASE, OPENBSD_6_5
Changes since 1.3: +8 -11 lines
Diff to previous 1.3 (colored)

simplify code for resolver_getnaimeinfo()

ok gilles@

Revision 1.3 / (download) - annotate - [select for diffs], Sun Nov 11 14:56:05 2018 UTC (5 years, 6 months ago) by eric
Branch: MAIN
Changes since 1.2: +7 -8 lines
Diff to previous 1.2 (colored)

Fix resolver_getaddrinfo(): use NULL strings in underlying messages
where appropriate and add missing check before freeaddrinfo().
This code path is currently unused.

Revision 1.2 / (download) - annotate - [select for diffs], Wed Aug 29 17:56:17 2018 UTC (5 years, 9 months ago) by eric
Branch: MAIN
CVS Tags: OPENBSD_6_4_BASE, OPENBSD_6_4
Changes since 1.1: +11 -9 lines
Diff to previous 1.1 (colored)

clean up the imsg structure for getnameinfo lookup results.
fix a crash with ill-configured reverse address.

found by jturner@

ok jturner@ gilles@

Revision 1.1 / (download) - annotate - [select for diffs], Wed Jul 25 16:00:48 2018 UTC (5 years, 10 months ago) by eric
Branch: MAIN

Implement a generic interface to forward resolver queries to the lka
process.  Use it for the reverse lookups required by smtp and mta.

Until now, DNS-related lookups were implemented using ad-hoc IMSGs
between the lka and other processes. It turns out to be confusing and
difficult to maintain/extend.  So we want to replace this with a better
set of IMSGs matching the standard resolver interface.

ok gilles@

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.