~ubuntu-branches/ubuntu/karmic/cyrus-imapd-2.2/karmic

« back to all changes in this revision

Viewing changes to debian/patches/0001-upstream-fix-segfault.dpatch

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2006-07-11 18:51:39 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20060711185139-gl3oe4tppp7g3euf
Tags: 2.2.13-4ubuntu1
Synchronize with Debian unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh /usr/share/dpatch/dpatch-run
 
2
## 0001-upstream-fix-segfault.dpatch by Sven Mueller <debian@incase.de>
 
3
##
 
4
## All lines beginning with `## DP:' are a description of the patch.
 
5
## DP: Fix for imap/backend.c, upstream CVS edition 1.40
 
6
 
 
7
@DPATCH@
 
8
diff -urNad cyrus-imapd-2.2.13/imap/backend.c /tmp/dpep.NeVG3m/cyrus-imapd-2.2.13/imap/backend.c
 
9
--- cyrus-imapd-2.2.13/imap/backend.c   2006-04-22 17:18:39.000000000 +0200
 
10
+++ /tmp/dpep.NeVG3m/cyrus-imapd-2.2.13/imap/backend.c  2006-05-02 22:08:32.024194651 +0200
 
11
@@ -271,7 +271,7 @@
 
12
     /* need to (re)establish connection to server or create one */
 
13
     int sock = -1;
 
14
     int r;
 
15
-    int err = 0;
 
16
+    int err = -1;
 
17
     struct addrinfo hints, *res0 = NULL, *res1 = NULL, *res;
 
18
     struct sockaddr_un sunsock;
 
19
     char buf[2048], *mechlist = NULL;