Fix test for PV name termination.
This commit is contained in:
1 parent
61bba9985b
commit
58ff396eef
1 file changed
+1
-1
@@ -1854,7 +1854,7 @@ LOCAL int search_reply(
|
||||
log_header ("empty PV name in UDP search request?", client, mp, 0);
|
||||
return RSRV_OK;
|
||||
}
|
||||
if (pName+mp->m_postsize-1 != '\0') {
|
||||
if (pName[mp->m_postsize-1] != '\0') {
|
||||
log_header ("unterminated PV name in UDP search request?", client, mp, 0);
|
||||
return RSRV_OK;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user