Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / security / isakmpd / patches / patch-aj
blob38e0c0f9c5f1e1ec243021344e7ff5d5b6057a51
1 $NetBSD$
3 --- message.c.orig      2003-09-02 18:14:52.000000000 +0000
4 +++ message.c
5 @@ -1188,8 +1188,14 @@ message_recv (struct message *msg)
6     * Now we can validate DOI-specific exchange types.  If we have no SA
7     * DOI-specific exchange types are definitely wrong.
8     */
9 +#if 0
10    if (exch_type >= ISAKMP_EXCH_DOI_MIN && exch_type <= ISAKMP_EXCH_DOI_MAX
11        && msg->exchange->doi->validate_exchange (exch_type))
12 +#else
13 +  /* gcc 3.3.1 barfs on u_int8_t <= 255 */
14 +  if (exch_type >= ISAKMP_EXCH_DOI_MIN
15 +      && msg->exchange->doi->validate_exchange (exch_type))
16 +#endif
17      {
18        log_print ("message_recv: invalid DOI exchange type %d", exch_type);
19        message_drop (msg, ISAKMP_NOTIFY_INVALID_EXCHANGE_TYPE, 0, 1, 1);
20 @@ -1787,7 +1793,7 @@ message_negotiate_sa (struct message *ms
21                       int (*validate) (struct exchange *, struct sa *,
22                                        struct sa *))
23  {
24 -  struct payload *tp, *propp, *sap, *next_tp = 0, *next_propp, *next_sap;
25 +  struct payload *tp, *propp, *sap, *next_tp = 0, *next_propp = 0, *next_sap = 0;
26    struct payload *saved_tp = 0, *saved_propp = 0, *saved_sap = 0;
27    struct sa *sa;
28    struct proto *proto;