Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 8 May 1996 08:57:14 -0700 (PDT)
From:      Bill Paul <wpaul>
To:        CVS-committers, cvs-all, cvs-usrsbin
Subject:   cvs commit:  src/usr.sbin/rpc.yppasswdd yppasswdd_server.c
Message-ID:  <199605081557.IAA15876@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
wpaul       96/05/08 08:57:13

  Modified:    usr.sbin/rpc.yppasswdd  yppasswdd_server.c
  Log:
  Fix 'multidomain' code. It returns a pointer to memory that it doesn't
  really own (and which can end up being mangled later). The manifestation
  of this bug is that the first attempt by a user to change their NIS password
  succeeds, but all subsequent attempts fail. rpc.yppasswdd also logs
  a message about not being able to find a file called
  '/var/yp/<some garbage string>/master.passwd.' (Note that for some
  bizarre reason, this doesn't happen with the malloc() from FreeBSD 2.1.0.
  I suppose this means we can chalk up another victory for phkmalloc. :)
  
  This bug only occurs if you use the -m flag with rpc.yppasswdd.
  
  Fix this by copying the domain name to a static buffer and returning
  a pointer to that instead.
  
  Reported by: Jian-Da Li (jdli@csie.nctu.edu.tw)
  
  Revision  Changes    Path
  1.3       +6 -8      src/usr.sbin/rpc.yppasswdd/yppasswdd_server.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199605081557.IAA15876>