[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: ud find seg fault (ITS#148)

Thanks!  A quick fix has been committed to -devel.  Will
be integrated into release engineering for 1.2.2.


At 03:55 PM 4/28/99 GMT, wes@umich.edu wrote:
>Full_Name: Wesley Craig
>Version: 1.2.1
>OS: Solaris 2.6
>URL: ftp://ftp.openldap.org/incoming/
>Submission from: (NULL) (
>Reproduce on Solaris 2.6 with OpenLDAP 1.2.1:
>% ud
>LDAP UserDirectory 1.2.1-Release (Wed Apr 21 13:15:23 EDT 1999)
>  Enter a command.  If you need help, type 'h' or '?' and hit RETURN.
>* find
>  Locate whose entry? 
>Segmentation Fault (core dumped)
>Fix is in clients/ud/main.c, line 230.  printf refers to "cp" which points
>to second argument is there was one.  When there's not, cp is NULL, causing
>printf's to core.  My fix, check for NULL, give message "Could not complete
>A better error message would get what the user typed at the "Locate whose
>prompt.  This is hard, since it's not local to do_command().