Source-Changes-HG archive

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

[src-draft/trunk]: src/sys/net80211 Make sure to terminate the SSID string



details:   https://anonhg.NetBSD.org/src-all/rev/d2ff5789e0a2
branches:  trunk
changeset: 1027069:d2ff5789e0a2
user:      Martin Husemann <martin%NetBSD.org@localhost>
date:      Tue Dec 29 20:54:02 2020 +0100

description:
Make sure to terminate the SSID string

diffstat:

 sys/net80211/ieee80211_proto.c |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (13 lines):

diff -r edf3c6d55452 -r d2ff5789e0a2 sys/net80211/ieee80211_proto.c
--- a/sys/net80211/ieee80211_proto.c    Tue Dec 29 16:33:08 2020 +0100
+++ b/sys/net80211/ieee80211_proto.c    Tue Dec 29 20:54:02 2020 +0100
@@ -609,7 +609,8 @@
                *out++= '"';
                for (i = 0, p = essid; i < len; i++, p++)
                        *out++ =  *p;
-               *out++= '"';
+               *out++ = '"';
+               *out++ = 0;
        } else {
                strcpy(out, "0x");
                out += strlen(out);



Home | Main Index | Thread Index | Old Index