~ubuntu-branches/ubuntu/precise/ipsec-tools/precise-security

« back to all changes in this revision

Viewing changes to src/racoon/nattraversal.c

  • Committer: Bazaar Package Importer
  • Author(s): Chuck Short
  • Date: 2010-05-05 02:26:50 UTC
  • mfrom: (1.1.10 upstream) (3.1.8 sid)
  • Revision ID: james.westby@ubuntu.com-20100505022650-z3tsr2uxt3npckr1
Tags: 1:0.7.3-6ubuntu1
* Merge from debian unstable.  Remaining changes:
  + debian/control:
    - Set Ubuntu maintainer address
    - Depend on lsb-base
  + debian/ipsec-tools.setket.init: LSB init script.
  + debian/{control,rules}: add and enable hardening build for PIE
    (Debian bug 542731)
  + src/racoon/ipsec_doi.c: Patched to fix segfault when using
    ipv6 addresses in sainfo section of racoon.conf. Thanks to 
    Fredrik Ljunggren. (LP: #374185)
  + src/racoon/isakmp.c: Fix address already in use. (LP: #332606)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*      $NetBSD: nattraversal.c,v 1.6 2006/09/09 16:22:09 manu Exp $    */
 
1
/*      $NetBSD: nattraversal.c,v 1.6.6.2 2009/05/18 17:01:07 tteras Exp $      */
2
2
 
3
3
/*
4
4
 * Copyright (C) 2004 SuSE Linux AG, Nuernberg, Germany.
287
287
void
288
288
natt_float_ports (struct ph1handle *iph1)
289
289
{
290
 
        if (! (iph1->natt_flags && NAT_DETECTED) )
 
290
        if (! (iph1->natt_flags & NAT_DETECTED) )
291
291
                return;
292
292
        if (! iph1->natt_options->float_port){
293
293
                /* Drafts 00 / 01, just schedule keepalive */