~andreserl/ubuntu/natty/keepalived/lp619712

« back to all changes in this revision

Viewing changes to keepalived/check/check_smtp.c

  • Committer: Bazaar Package Importer
  • Author(s): Alexander Wirt
  • Date: 2006-06-28 20:01:56 UTC
  • mfrom: (3.1.1 etch)
  • Revision ID: james.westby@ubuntu.com-20060628200156-nrd7ykkgxgyhxl46
Tags: 1.1.12-1
* New upstream release (Closes: #365220)
* Call notification for every failure. Thanks to Len Sorenson for
  the patch (Closes: #336885)
* delete /tmp/.vrrp and /tmp/.healthcheckers if they exists before
  starting keepalived (Closes: #333102)
* bumped standard version

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
 *
6
6
 * Part:        SMTP CHECK. Check an SMTP-server.
7
7
 *
8
 
 * Version:     $Id: check_smtp.c,v 1.1.11 2005/03/01 01:22:13 acassen Exp $
 
8
 * Version:     $Id: check_smtp.c,v 1.1.12 2006/03/09 01:22:13 acassen Exp $
9
9
 *
10
10
 * Authors:     Jeremy Rumpf, <jrumpf@heavyload.net>
11
11
 *              Alexandre Cassen, <acassen@linux-vs.org>
20
20
 *              as published by the Free Software Foundation; either version
21
21
 *              2 of the License, or (at your option) any later version.
22
22
 *
23
 
 * Copyright (C) 2001-2005 Alexandre Cassen, <acassen@linux-vs.org>
 
23
 * Copyright (C) 2001-2006 Alexandre Cassen, <acassen@linux-vs.org>
24
24
 */
25
25
 
26
26
#include <ctype.h>
148
148
         * configuration structures. We'll set a "default host", which
149
149
         * is the same ip as the real server. If there are additional "host"
150
150
         * sections in the config, the default will be deleted and overridden.
 
151
         * If the default is still set by a previous "SMTP_CHECK" section,
 
152
         * we must simply overwrite the old value:
 
153
         * - it must not be reused, because it was probably located in a
 
154
         *   different "real_server" section and
 
155
         * - it must not be freed, because it is still referenced
 
156
         *   by some other smtp_chk->host.
151
157
         * This must come after queue_checker()!
152
158
         */
153
159
        smtp_chk->host = alloc_list(smtp_free_host, smtp_dump_host);
154
 
        if (!default_host)
155
 
                default_host = smtp_alloc_host();
 
160
        default_host = smtp_alloc_host();
156
161
        list_add(smtp_chk->host, default_host);
157
162
}
158
163