summaryrefslogtreecommitdiff
path: root/mail/libesmtp/files/patch-smtp-tls.c
diff options
context:
space:
mode:
authorClement Laforet <clement@FreeBSD.org>2004-01-18 21:06:55 +0000
committerClement Laforet <clement@FreeBSD.org>2004-01-18 21:06:55 +0000
commitb2874ac4901556dceb9b4fa3915e6a1d7b6d26e5 (patch)
treeb8ec2a69c8877ed7db13ee652d89b7d27ecf4fbe /mail/libesmtp/files/patch-smtp-tls.c
parentUpdate to 0.6.2 which fixes a problem when trying to set the splash screen (diff)
- Add memrchr().
- Maintainer informed. Requested by: many
Notes
Notes: svn path=/head/; revision=98496
Diffstat (limited to 'mail/libesmtp/files/patch-smtp-tls.c')
-rw-r--r--mail/libesmtp/files/patch-smtp-tls.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/mail/libesmtp/files/patch-smtp-tls.c b/mail/libesmtp/files/patch-smtp-tls.c
new file mode 100644
index 000000000000..391b58573aa1
--- /dev/null
+++ b/mail/libesmtp/files/patch-smtp-tls.c
@@ -0,0 +1,23 @@
+--- smtp-tls.c.orig Mon Jan 19 02:36:32 2004
++++ smtp-tls.c Mon Jan 19 02:41:25 2004
+@@ -450,6 +450,20 @@
+ return 1;
+ }
+
++#if defined(__FreeBSD__)
++void *
++memrchr(const void *v, int c, size_t size)
++{
++ const unsigned char *p = (const unsigned char *) v + size;
++
++ while (size-- > 0) {
++ if (*--p == c)
++ return (void *) p;
++ }
++ return NULL;
++}
++#endif
++
+ /* Perform a domain name comparison where the reference may contain
+ wildcards. This implements the comparison from RFC 2818.
+ Each component of the domain name is matched separately, working from