called 'credentials' to not copy correctly (the bug was in handling
of chaining in the copy code
- ensure that C pointer variables are copied via a talloc reference so that
we can persist rpc pipes and credentials between sessions
(This used to be commit
ca6f049693f8bfe69d5c7533b2cc92221d0cf6d4)
break;
case MPR_TYPE_PTR:
- dest->ptr = src->ptr;
+ /* we have to reference here so talloc structures survive a
+ copy */
+ dest->ptr = talloc_reference(dest, src->ptr);
break;
case MPR_TYPE_STRING_CFUNCTION:
srcProp->visited = 1;
copyVarCore(destProp, srcProp, copyDepth);
srcProp->visited = 0;
- last = srcProp;
+ last = destProp;
}
}
dest->properties->numItems = src->properties->numItems;