Changeset 487 for trunk/src/sh_unix.c


Ignore:
Timestamp:
Sep 13, 2015, 11:15:42 AM (9 years ago)
Author:
katerina
Message:

Fix for ticket #385 (self_test not working with exit on sigterm).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/sh_unix.c

    r486 r487  
    969969             sh_tiger_hash (sh.exec.path, TIGER_FILE, TIGER_NOLIM, hashbuf, sizeof(hashbuf)),
    970970             KEY_LEN+1);
    971   if (0 == sl_strncmp(sh.exec.hash,
    972                       newhash,
    973                       KEY_LEN))
    974     SL_RETURN((0), _("sh_unix_self_check"));
    975 
     971  if (0 == sl_strncmp(sh.exec.hash, newhash, KEY_LEN))
     972    {
     973      sh_error_handle(SH_ERR_INFO, FIL__, __LINE__, 0, MSG_E_SUBGEN,
     974                      _("Checksum ok"), _("sh_unix_self_check"));
     975      SL_RETURN((0), _("sh_unix_self_check"));
     976    }
    976977 
    977978  dlog(1, FIL__, __LINE__,
Note: See TracChangeset for help on using the changeset viewer.