Changeset 699 in openpam for trunk/lib


Ignore:
Timestamp:
Aug 15, 2013, 5:15:35 PM (7 years ago)
Author:
Dag-Erling Smørgrav
Message:

Fixed flipped condition.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/liboath/oath_key_alloc.c

    r696 r699  
    6161        flags |= MAP_NOCORE;
    6262#endif
    63         if ((key = mmap(NULL, sizeof *key, prot, flags, -1, 0)) == NULL) {
     63        if ((key = mmap(NULL, sizeof *key, prot, flags, -1, 0)) != NULL) {
    6464                memset(key, 0, sizeof *key);
    6565                key->mapped = 1;
Note: See TracChangeset for help on using the changeset viewer.