- Various fixes to make mountaingum work

This commit is contained in:
koennecke
2007-08-15 07:14:50 +00:00
parent 25f80f42fb
commit 590a979290
10 changed files with 1930 additions and 9976 deletions

View File

@ -132,24 +132,26 @@ static pHdb recurseInterestNode(pHdb current, char *pDevice){
*/
alias = FindAliases(pServ->pSics,pSicsdev);
pPtr = alias;
while((pPtr = stptok(pPtr,pAlias,131,",")) != NULL){
if(strcmp(pAlias,pDevice) == 0){
return current;
}
}
if(alias != NULL){
free(alias);
}
}
if(pPtr != NULL){
while((pPtr = stptok(pPtr,pAlias,131,",")) != NULL){
if(strcmp(pAlias,pDevice) == 0){
return current;
}
}
if(alias != NULL){
free(alias);
}
}
}
current = current->child;
while(current != NULL){
result = recurseInterestNode(current, pDevice);
result = recurseInterestNode(current, pDevice);
if(result != NULL){
return result;
}
current = current->next;
}
}
return result;
}
current = current->next;
}
}
return NULL;
}
/*--------------------------------------------------------------------------*/
@ -192,6 +194,9 @@ static int StateHdbInterest(int iEvent, void *pEvent, void *pUser,
snprintf(buffer,1024,"%s FINISH", path);
SCWriteInContext(pCon,buffer,eWarning,cc);
}
if(path != NULL){
free(path);
}
}
return 1;
}