- Fixed a core dump in the sycamore protocol
- Added missing files aynnet.* - Fixed the addition to root issue in scriptcontex
This commit is contained in:
@@ -1005,9 +1005,17 @@ static int SctMakeController(SConnection * con, SicsInterp * sics,
|
||||
return 0;
|
||||
}
|
||||
|
||||
parent = FindHdbParent(NULL, argv[1], &nodeName, con);
|
||||
if (parent == NULL)
|
||||
return 0; /* error message already written */
|
||||
/*
|
||||
* Install into the Hipadaba when full path given
|
||||
*/
|
||||
if(strstr(argv[1],"/") != NULL){
|
||||
parent = FindHdbParent(NULL, argv[1], &nodeName, con);
|
||||
if (parent == NULL)
|
||||
return 0; /* error message already written */
|
||||
} else {
|
||||
nodeName = argv[1];
|
||||
parent = NULL;
|
||||
}
|
||||
|
||||
controller = calloc(1, sizeof(*controller));
|
||||
assert(controller);
|
||||
@@ -1022,7 +1030,9 @@ static int SctMakeController(SConnection * con, SicsInterp * sics,
|
||||
ccmd->pPrivate = controller;
|
||||
ccmd->KillPrivate = SctKillController;
|
||||
|
||||
AddHipadabaChild(parent, controller->node, con);
|
||||
if(parent != NULL){
|
||||
AddHipadabaChild(parent, controller->node, con);
|
||||
}
|
||||
|
||||
controller->devser = DevMake(con, argc - 2, argv + 2);
|
||||
if (!controller->devser)
|
||||
|
||||
Reference in New Issue
Block a user