Changeset 235 in openpam


Ignore:
Timestamp:
May 25, 2003, 12:52:31 PM (12 years ago)
Author:
des
Message:

No need to explicitly clear pointers now that we use FREE().

Location:
trunk/lib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/openpam_ttyconv.c

    r232 r235  
    3232 * SUCH DAMAGE.
    3333 *
    34  * $P4: //depot/projects/openpam/lib/openpam_ttyconv.c#18 $
     34 * $P4: //depot/projects/openpam/lib/openpam_ttyconv.c#19 $
    3535 */
    3636
     
    182182                FREE(resp[--i]);
    183183        FREE(*resp);
    184         *resp = NULL;
    185184        RETURNC(PAM_CONV_ERR);
    186185}
  • trunk/lib/pam_get_authtok.c

    r232 r235  
    3232 * SUCH DAMAGE.
    3333 *
    34  * $P4: //depot/projects/openpam/lib/pam_get_authtok.c#23 $
     34 * $P4: //depot/projects/openpam/lib/pam_get_authtok.c#24 $
    3535 */
    3636
     
    113113                        RETURNC(r);
    114114                }
    115                 if (strcmp(resp, resp2) != 0) {
     115                if (strcmp(resp, resp2) != 0)
    116116                        FREE(resp);
    117                         resp = NULL;
    118                 }
    119117                FREE(resp2);
    120118        }
Note: See TracChangeset for help on using the changeset viewer.