[network-manager-applet] eap: handle PEM files without an ending newline (rh #507315)
- From: Dan Williams <dcbw src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [network-manager-applet] eap: handle PEM files without an ending newline (rh #507315)
- Date: Mon, 23 Nov 2009 20:08:02 +0000 (UTC)
commit b70cd3542944e80c30eb470b3b7b494672115386
Author: Dan Williams <dcbw redhat com>
Date: Mon Nov 23 12:07:17 2009 -0800
eap: handle PEM files without an ending newline (rh #507315)
src/wireless-security/eap-method.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/wireless-security/eap-method.c b/src/wireless-security/eap-method.c
index 0449708..7650ce1 100644
--- a/src/wireless-security/eap-method.c
+++ b/src/wireless-security/eap-method.c
@@ -369,7 +369,7 @@ find_tag (const char *tag, const char *buf, gsize len)
if (len < taglen)
return NULL;
- for (i = 0; i < len - taglen; i++) {
+ for (i = 0; i < len - taglen + 1; i++) {
if (memcmp (buf + i, tag, taglen) == 0)
return buf + i;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]