srp.c (312826) | srp.c (325335) |
---|---|
1/* apps/srp.c */ 2/* 3 * Written by Peter Sylvester (peter.sylvester@edelweb.fr) for the EdelKey 4 * project and contributed to the OpenSSL project 2004. 5 */ 6/* ==================================================================== 7 * Copyright (c) 2004 The OpenSSL Project. All rights reserved. 8 * --- 169 unchanged lines hidden (view full) --- 178 int i; 179 180 if ((irow = 181 (char **)OPENSSL_malloc(sizeof(char *) * (DB_NUMBER + 1))) == NULL) { 182 BIO_printf(bio_err, "Memory allocation failure\n"); 183 return 0; 184 } 185 | 1/* apps/srp.c */ 2/* 3 * Written by Peter Sylvester (peter.sylvester@edelweb.fr) for the EdelKey 4 * project and contributed to the OpenSSL project 2004. 5 */ 6/* ==================================================================== 7 * Copyright (c) 2004 The OpenSSL Project. All rights reserved. 8 * --- 169 unchanged lines hidden (view full) --- 178 int i; 179 180 if ((irow = 181 (char **)OPENSSL_malloc(sizeof(char *) * (DB_NUMBER + 1))) == NULL) { 182 BIO_printf(bio_err, "Memory allocation failure\n"); 183 return 0; 184 } 185 |
186 for (i = 0; i < DB_NUMBER; i++) { | 186 for (i = 0; i < DB_NUMBER; i++) |
187 irow[i] = row[i]; | 187 irow[i] = row[i]; |
188 row[i] = NULL; 189 } | |
190 irow[DB_NUMBER] = NULL; 191 192 if (!TXT_DB_insert(db->db, irow)) { 193 BIO_printf(bio, "failed to update srpvfile\n"); 194 BIO_printf(bio, "TXT_DB error number %ld\n", db->db->error); 195 OPENSSL_free(irow); 196 return 0; 197 } --- 571 unchanged lines hidden --- | 188 irow[DB_NUMBER] = NULL; 189 190 if (!TXT_DB_insert(db->db, irow)) { 191 BIO_printf(bio, "failed to update srpvfile\n"); 192 BIO_printf(bio, "TXT_DB error number %ld\n", db->db->error); 193 OPENSSL_free(irow); 194 return 0; 195 } --- 571 unchanged lines hidden --- |