NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

lib/46005: Use the correct constant.



>Number:         46005
>Category:       lib
>Synopsis:       Use the correct constant.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    lib-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Feb 12 12:00:01 +0000 2012
>Originator:     Henning Petersen
>Release:        NetBSD-current
>Organization:
>Environment:
>Description:
Use the correct constant.
From FreeBSD.
>How-To-Repeat:

>Fix:
diff -u -p -r1.23 pfkey.c
--- crypto/dist/ipsec-tools/src/libipsec/pfkey.c        9 Jan 2012 15:25:13 
-0000       1.23
+++ crypto/dist/ipsec-tools/src/libipsec/pfkey.c        11 Feb 2012 11:58:53 
-0000
@@ -710,7 +710,7 @@ pfkey_send_register(int so, u_int satype
 {
        int len, algno;
 
-       if (satype == PF_UNSPEC) {
+       if (satype == SADB_SATYPE_UNSPEC) {
                for (algno = 0;
                     algno < sizeof(supported_map)/sizeof(supported_map[0]);
                     algno++) {



Home | Main Index | Thread Index | Old Index