Changeset b072204 in mod_gnutls for src


Ignore:
Timestamp:
Mar 3, 2008, 9:04:01 AM (12 years ago)
Author:
Nokis Mavrogiannopoulos <nmav@…>
Branches:
debian/master, debian/stretch-backports, jessie-backports, master, msva, upstream
Children:
fc4c2e47
Parents:
b333517
git-author:
Nikos Mavrogiannopoulos <nmav@…> (03/03/08 09:04:01)
git-committer:
Nokis Mavrogiannopoulos <nmav@…> (03/03/08 09:04:01)
Message:

corrected SRP enable flag, and corrected the DBM hook support. It now free data needed by some DBM providers.

Location:
src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/gnutls_cache.c

    rb333517 rb072204  
    11/**
    22 *  Copyright 2004-2005 Paul Querna
     3 *  Portions Copyright 2008 Nikos Mavrogiannopoulos
    34 *
    45 *  Licensed under the Apache License, Version 2.0 (the "License");
     
    346347                }
    347348            }
     349            apr_dbm_freedatum( dbm, dbmval);
    348350           
    349351        }
     
    402404
    403405    if (dbmval.dptr == NULL || dbmval.dsize <= sizeof(apr_time_t)) {
     406        apr_dbm_freedatum( dbm, dbmval);
    404407        apr_dbm_close(dbm);
    405408        return data;
    406409    }
    407     apr_dbm_close(dbm);
    408410
    409411    data.size = dbmval.dsize - sizeof(apr_time_t);
     
    411413    data.data = gnutls_malloc(data.size);
    412414    if (data.data == NULL) {
     415        apr_dbm_freedatum( dbm, dbmval);
     416        apr_dbm_close(dbm);
    413417        return data;
    414418    }
    415419   
    416420    memcpy(data.data, dbmval.dptr+sizeof(apr_time_t), data.size);
     421
     422    apr_dbm_freedatum( dbm, dbmval);
     423    apr_dbm_close(dbm);
    417424
    418425    return data;
  • src/mod_gnutls.c

    rb333517 rb072204  
    1717
    1818#include "mod_gnutls.h"
    19 
    2019
    2120static void gnutls_hooks(apr_pool_t * p)
Note: See TracChangeset for help on using the changeset viewer.