svn commit: r303335 - head/www/mod_auth_imap2/files

Olli Hauer ohauer at FreeBSD.org
Wed Aug 29 11:57:30 UTC 2012


Author: ohauer
Date: Wed Aug 29 11:57:30 2012
New Revision: 303335
URL: http://svn.freebsd.org/changeset/ports/303335

Log:
  - add missing patch
  
  PR:             ports/166488
  Submitted by:   Radim Kolar <hsn at filez.com>

Added:
  head/www/mod_auth_imap2/files/
  head/www/mod_auth_imap2/files/patch-mod_auth_imap.c   (contents, props changed)

Added: head/www/mod_auth_imap2/files/patch-mod_auth_imap.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/mod_auth_imap2/files/patch-mod_auth_imap.c	Wed Aug 29 11:57:30 2012	(r303335)
@@ -0,0 +1,23 @@
+--- ./mod_auth_imap.c.orig	2006-05-08 01:22:43.000000000 +0200
++++ ./mod_auth_imap.c	2012-08-25 19:06:59.000000000 +0200
+@@ -170,7 +170,7 @@
+     tcp_gets(Sock,result,500);
+ 
+     //skip lines that start with "*"
+-    if (strncmp(result,"* ",2 == 0)) {
++    if (strncmp(result,"* ",2) == 0) {
+ 	tcp_gets(Sock,result,500);
+     }
+ 
+@@ -188,6 +188,11 @@
+     tcp_puts(Sock,buf);
+     tcp_gets(Sock,result,500);
+ 
++    //skip lines that start with "*"
++    if (strncmp(result,"* ",2) == 0) {
++       tcp_gets(Sock,result,500);
++    }
++
+     if (strncmp(result,"A002 OK",7) == 0) {
+         if (logflag) {
+             ap_log_rerror(APLOG_MARK,APLOG_WARNING|APLOG_NOERRNO,0,r,"mod_auth_imap: Verified login for user %s.", username);



More information about the svn-ports-head mailing list