From jhamby@anobject.com  Mon Aug 16 04:39:45 2004
Return-Path: <jhamby@anobject.com>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id ABF3E16A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 16 Aug 2004 04:39:45 +0000 (GMT)
Received: from bronco.gopix.net (gopix.net [38.118.153.46])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 8DB9C43D31
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 16 Aug 2004 04:39:45 +0000 (GMT)
	(envelope-from jhamby@anobject.com)
Received: from localhost.my.domain (ca-stmnca-cuda2-blade8b-87.stmnca.adelphia.net [68.65.226.87])
	by bronco.gopix.net (8.12.11/8.12.11) with ESMTP id i7G4djgu014858
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK)
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 15 Aug 2004 21:39:45 -0700
Received: (from jhamby@localhost)
	by localhost.my.domain (8.13.1/8.13.1/Submit) id i7G4di10020966;
	Sun, 15 Aug 2004 21:39:44 -0700 (PDT)
	(envelope-from jhamby)
Message-Id: <200408160439.i7G4di10020966@localhost.my.domain>
Date: Sun, 15 Aug 2004 21:39:44 -0700 (PDT)
From: Jake Hamby <jhamby@anobject.com>
Reply-To: Jake Hamby <jhamby@anobject.com>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: GCC 3.4 patch for net-mgmt/bsd-airtools
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         70514
>Category:       ports
>Synopsis:       GCC 3.4 patch for net-mgmt/bsd-airtools
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    seanc
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Aug 16 04:40:15 GMT 2004
>Closed-Date:    Wed Apr 13 12:33:34 GMT 2005
>Last-Modified:  Wed Apr 13 12:33:34 GMT 2005
>Originator:     Jake Hamby
>Release:        FreeBSD 5.2-CURRENT i386
>Organization:
Software Factory x
>Environment:
System: FreeBSD fuji 5.2-CURRENT FreeBSD 5.2-CURRENT #2: Sat Aug 14 19:00:56 PDT 2004 root@fuji:/usr/home/work/sys/FUJI i386

>Description:

The bsd-airtools-0.3 port doesn't compile under GCC 3.4 (patch attached).

>How-To-Repeat:

Try to build using FreeBSD-current.

>Fix:

--- patch-weakksa.c begins here ---
--- dweputils/dwepcrack/weakksa.c.orig	Sat Jul 19 22:43:59 2003
+++ dweputils/dwepcrack/weakksa.c	Sun Aug 15 21:34:45 2004
@@ -161,14 +161,13 @@
          (B != 0 && !(B % 2) ? (x == 1 && y == (B / 2) + 1) ||
          (x == (B / 2) + 2 && y == (N - 1) - x) : 0))
         {
-          if(BITSET(sample_check[x][y], z))
-            goto fail;
-          SETBIT(sample_check[x][y], z);
+          if(!BITSET(sample_check[x][y], z))
+          {
+            SETBIT(sample_check[x][y], z);
 
-          memcpy(samples[B].s[samples[B].len].iv, iv, IV_SIZE);
-          samples[B].s[samples[B].len++].byte = iv[4] ^ 0xaa;
-
-          fail:
+            memcpy(samples[B].s[samples[B].len].iv, iv, IV_SIZE);
+            samples[B].s[samples[B].len++].byte = iv[4] ^ 0xaa;
+          }
         }
       }
     }
--- patch-weakksa.c ends here ---


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->seanc 
Responsible-Changed-By: vs 
Responsible-Changed-When: Mon Aug 16 07:21:54 GMT 2004 
Responsible-Changed-Why:  
Over to maintainer 

http://www.freebsd.org/cgi/query-pr.cgi?pr=70514 
State-Changed-From-To: open->closed 
State-Changed-By: flz 
State-Changed-When: Wed Apr 13 12:33:09 GMT 2005 
State-Changed-Why:  
krion fixed this some months ago. 
Thanks for your submission! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=70514 
>Unformatted:
