summaryrefslogtreecommitdiffstats
path: root/runtime
diff options
context:
space:
mode:
Diffstat (limited to 'runtime')
-rw-r--r--runtime/net.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/runtime/net.c b/runtime/net.c
index 89e0838b..c3252269 100644
--- a/runtime/net.c
+++ b/runtime/net.c
@@ -287,8 +287,8 @@ PermittedPeerWildcardCompile(permittedPeers_t *pPeer)
* of the text (it is supported at the start or end only).
*/
pPeer->etryType = PERM_PEER_TYPE_WILDCARD;
-
- for(pC = pPeer->pszID ; *pC != '\0' ; ++pC) {
+ pC = pPeer->pszID;
+ while(*pC != '\0') {
pStart = pC;
/* find end of domain component */
for( ; *pC != '\0' && *pC != '.' ; ++pC)
@@ -299,6 +299,8 @@ PermittedPeerWildcardCompile(permittedPeers_t *pPeer)
/* pStart is a dummy, it is not used if length is 0 */
CHKiRet(AddPermittedPeerWildcard(pPeer, pStart, 0));
}
+ if(*pC != '\0')
+ ++pC;
}
finalize_it: