diff options
-rw-r--r-- | ChangeLog | 1 | ||||
-rw-r--r-- | runtime/net.c | 6 |
2 files changed, 5 insertions, 2 deletions
@@ -2,6 +2,7 @@ Version 3.19.6 (rgerhards), 2008-06-?? - bugfix: part of permittedPeer structure was not correctly initialized thanks to varmojfekoj for spotting this +- bugfix: off-by-one bug during certificate check --------------------------------------------------------------------------- Version 3.19.5 (rgerhards), 2008-05-30 - enabled Posix ERE expressions inside the property replacer 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: |