2001-03-29  Neal H Walfield  <[EMAIL PROTECTED]>

        * idvec-auth.c (idvec_merge_auth): Really allow parameters
        to be NULL.


--- hurd-20010307-snapshot/libshouldbeinlibc/idvec-auth.c       Sun Jul 11 10:06:07 
1999
+++ hurd-20010313/libshouldbeinlibc/idvec-auth.c        Fri Mar 30 17:32:58 2001
@@ -1,8 +1,8 @@
 /* Idvec functions that interact with an auth server
 
-   Copyright (C) 1995, 1998, 1999 Free Software Foundation, Inc.
+   Copyright (C) 1995, 1998, 1999, 2001 Free Software Foundation, Inc.
 
-   Written by Miles Bader <[EMAIL PROTECTED]>
+   Written by Miles Bader <[EMAIL PROTECTED]>
 
    This program is free software; you can redistribute it and/or
    modify it under the terms of the GNU General Public License as
@@ -59,10 +59,14 @@
     /* Now that we've ensured there's enough space, none of these should
        return an error.  */
     {
-      idvec_merge_ids (eff_uids, _eff_uids, num_eff_uids);
-      idvec_merge_ids (avail_uids, _avail_uids, num_avail_uids);
-      idvec_merge_ids (eff_gids, _eff_gids, num_eff_gids);
-      idvec_merge_ids (avail_gids, _avail_gids, num_avail_gids);
+      if (eff_uids)
+       idvec_merge_ids (eff_uids, _eff_uids, num_eff_uids);
+      if (avail_uids)
+       idvec_merge_ids (avail_uids, _avail_uids, num_avail_uids);
+      if (eff_gids)
+       idvec_merge_ids (eff_gids, _eff_gids, num_eff_gids);
+      if (avail_gids)
+       idvec_merge_ids (avail_gids, _avail_gids, num_avail_gids);
     }
 
   /* Deallocate any out-of-line memory we got back.  */

PGP signature

Reply via email to