Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F144782276
D54544.1776476370.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
424 B
Referenced Files
None
Subscribers
None
D54544.1776476370.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
Sat, Apr 18, 1:39 AM (55 m, 51 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28370290
Default Alt Text
D54544.1776476370.diff (424 B)
Attached To
Mode
D54544: ng_tty: avoid the sign extention of char
Attached
Detach File
Event Timeline
Log In to Comment