~ubuntu-branches/ubuntu/saucy/clamav/saucy-backports

« back to all changes in this revision

Viewing changes to libclamav/fmap.c

  • Committer: Package Import Robot
  • Author(s): Scott Kitterman
  • Date: 2014-07-15 01:08:10 UTC
  • mfrom: (0.35.47 sid)
  • Revision ID: package-import@ubuntu.com-20140715010810-ru66ek4fun2iseba
Tags: 0.98.4+dfsg-2~ubuntu13.10.1
No-change backport to saucy (LP: #1341962)

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
#include <pthread.h>
42
42
#endif
43
43
 
 
44
#include <openssl/ssl.h>
 
45
#include <openssl/err.h>
 
46
#include "libclamav/crypto.h"
 
47
 
44
48
#include "others.h"
45
49
#include "cltypes.h"
46
50
 
251
255
#endif /* ANONYMOUS_MAP */
252
256
    if (!use_aging) {
253
257
        m = (fmap_t *)cli_malloc(mapsz);
 
258
    if (!(m)) {
 
259
        cli_warnmsg("fmap: map allocation failed\n");
 
260
        return NULL;
 
261
    }
254
262
        memset(m, 0, hdrsz);
255
263
    }
256
264
    if(!m) {