~ubuntu-branches/ubuntu/vivid/curl/vivid

« back to all changes in this revision

Viewing changes to lib/sslgen.c

  • Committer: Bazaar Package Importer
  • Author(s): Ramakrishnan Muthukrishnan
  • Date: 2010-03-18 08:55:19 UTC
  • mfrom: (3.4.3 squeeze)
  • mto: (3.5.1 squeeze) (1.3.1)
  • mto: This revision was merged to the branch mainline in revision 42.
  • Revision ID: james.westby@ubuntu.com-20100318085519-iq2nvq06lp26abtp
Tags: upstream-7.20.0
ImportĀ upstreamĀ versionĀ 7.20.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
19
19
 * KIND, either express or implied.
20
20
 *
21
 
 * $Id: sslgen.c,v 1.48 2009-05-04 21:57:14 bagder Exp $
 
21
 * $Id: sslgen.c,v 1.49 2009-11-18 10:33:55 yangtse Exp $
22
22
 ***************************************************************************/
23
23
 
24
24
/* This file is for implementing all "generic" SSL functions that all libcurl
446
446
    /* this is just a precaution to prevent multiple inits */
447
447
    return CURLE_OK;
448
448
 
449
 
  session = calloc(sizeof(struct curl_ssl_session), amount);
 
449
  session = calloc(amount, sizeof(struct curl_ssl_session));
450
450
  if(!session)
451
451
    return CURLE_OUT_OF_MEMORY;
452
452