Let's give more space for alloc there.
authorFrantišek Dvořák <valtri@civ.zcu.cz>
Wed, 10 Oct 2007 18:36:13 +0000 (18:36 +0000)
committerFrantišek Dvořák <valtri@civ.zcu.cz>
Wed, 10 Oct 2007 18:36:13 +0000 (18:36 +0000)
org.glite.security.gss/src/glite_gss.c

index 79f3d97..81fae85 100644 (file)
@@ -1111,7 +1111,7 @@ edg_wll_gss_get_client_conn(edg_wll_GssConnection *connection,
    if (GSS_ERROR(maj_stat))
       goto end;
 
-   p = calloc(1, sizeof(*principal));
+   p = calloc(1, sizeof(*p));
    if (p == NULL) {
       errno = ENOMEM;
       ret = EDG_WLL_GSS_ERROR_ERRNO;