Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F157998105
D54544.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
424 B
Referenced Files
None
Subscribers
None
D54544.id.diff
View Options
diff --git a/sys/netgraph/ng_tty.c b/sys/netgraph/ng_tty.c
--- a/sys/netgraph/ng_tty.c
+++ b/sys/netgraph/ng_tty.c
@@ -489,7 +489,8 @@
m->m_pkthdr.len++;
/* Ship off mbuf if it's time */
- if (sc->hotchar == -1 || c == sc->hotchar || m->m_len >= MHLEN) {
+ if (sc->hotchar == -1 || (u_char)c == sc->hotchar ||
+ m->m_len >= MHLEN) {
sc->m = NULL;
NG_SEND_DATA_ONLY(error, sc->hook, m); /* Will queue */
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, May 28, 8:08 AM (12 h, 15 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33551752
Default Alt Text
D54544.id.diff (424 B)
Attached To
Mode
D54544: ng_tty: avoid the sign extention of char
Attached
Detach File
Event Timeline
Log In to Comment