Source-Changes-HG archive

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

[src/trunk]: src/crypto/external/bsd/openssh/dist Pass the correct length to ...



details:   https://anonhg.NetBSD.org/src/rev/f209b0049b6b
branches:  trunk
changeset: 338252:f209b0049b6b
user:      christos <christos%NetBSD.org@localhost>
date:      Sat May 16 14:17:28 2015 +0000

description:
Pass the correct length to match_patter_list; from Hanno Boeck.
XXX: pullup-7

diffstat:

 crypto/external/bsd/openssh/dist/compat.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 778aecc61672 -r f209b0049b6b crypto/external/bsd/openssh/dist/compat.c
--- a/crypto/external/bsd/openssh/dist/compat.c Sat May 16 13:59:00 2015 +0000
+++ b/crypto/external/bsd/openssh/dist/compat.c Sat May 16 14:17:28 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: compat.c,v 1.9 2015/04/03 23:58:19 christos Exp $      */
+/*     $NetBSD: compat.c,v 1.10 2015/05/16 14:17:28 christos Exp $     */
 /* $OpenBSD: compat.c,v 1.87 2015/01/19 20:20:20 markus Exp $ */
 /*
  * Copyright (c) 1999, 2000, 2001, 2002 Markus Friedl.  All rights reserved.
@@ -25,7 +25,7 @@
  */
 
 #include "includes.h"
-__RCSID("$NetBSD: compat.c,v 1.9 2015/04/03 23:58:19 christos Exp $");
+__RCSID("$NetBSD: compat.c,v 1.10 2015/05/16 14:17:28 christos Exp $");
 #include <sys/types.h>
 
 #include <stdlib.h>
@@ -242,7 +242,7 @@
        buffer_init(&b);
        tmp = orig_prop = xstrdup(proposal);
        while ((cp = strsep(&tmp, ",")) != NULL) {
-               if (match_pattern_list(cp, filter, strlen(cp), 0) != 1) {
+               if (match_pattern_list(cp, filter, strlen(filter), 0) != 1) {
                        if (buffer_len(&b) > 0)
                                buffer_append(&b, ",", 1);
                        buffer_append(&b, cp, strlen(cp));



Home | Main Index | Thread Index | Old Index