~ubuntu-branches/ubuntu/hardy/openssl/hardy-security

« back to all changes in this revision

Viewing changes to crypto/mem_clr.c

  • Committer: Bazaar Package Importer
  • Author(s): Kurt Roeckx
  • Date: 2005-12-13 21:37:42 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20051213213742-7em5nrw5c7ceegyd
Tags: 0.9.8a-5
Stop ssh from crashing randomly on sparc (Closes: #335912)
Patch from upstream cvs.

Show diffs side-by-side

added added

removed removed

Lines of Context:
68
68
        while(loop--)
69
69
                {
70
70
                *(p++) = cleanse_ctr;
71
 
                cleanse_ctr += (17 + (unsigned char)((int)p & 0xF));
 
71
                cleanse_ctr += (17 + (unsigned char)((unsigned long)p & 0xF));
72
72
                }
73
73
        if(memchr(ptr, cleanse_ctr, len))
74
74
                cleanse_ctr += 63;