[389-devel] plugin problem using slapi_entry_attr_find

Rich Megginson rmeggins at redhat.com
Thu Jan 16 19:28:31 UTC 2014


On 01/16/2014 11:39 AM, Deas, Jim wrote:
>
> My bet, a rookie mistake. Am I forgetting to init a pointer etc???
>
> Adding  the line surrounded by ******  in this routine makes dirsrv 
> unstable and crashes it after a few queries.
>
> /* Registered preop_result routine */
>
> int gnest_preop_results( Slapi_PBlock *pb){
>
>                 Slapi_Entry *e;
>
>                 Slapi_Attr  **a;
>
This should be Slapi_Attr *a;
>
> If (slapi_pblock_get( pb, SLAPI_SEARCH_ATTRS, &e) !=0 )return (-1);
>
> /*****************This line makes the server unstable and crashes it 
> after one or two queries ********************/
>
> If(slapi_entry_attr_find(e, “memberUid”,&a) == 0) 
> slapi_log_error(SLAPI_LOG_PLUGIN, “gnest preop”,”memberUid  found in 
> record);
>
> /******************************************************************************************************/
>
> Return (0);
>
> }
>
> *JD*
>
>
>
> --
> 389-devel mailing list
> 389-devel at lists.fedoraproject.org
> https://admin.fedoraproject.org/mailman/listinfo/389-devel

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.fedoraproject.org/pipermail/389-devel/attachments/20140116/3b2d5905/attachment.html>


More information about the 389-devel mailing list