kernel/netinet6: Fix stupid NULL pointer derefs.
authorSascha Wildner <saw@online.de>
Sun, 4 Dec 2011 22:00:42 +0000 (23:00 +0100)
committerSascha Wildner <saw@online.de>
Sun, 4 Dec 2011 22:00:42 +0000 (23:00 +0100)
sys/netinet6/esp_aesctr.c
sys/netinet6/esp_core.c

index a4f6d8a..22af314 100644 (file)
@@ -77,8 +77,8 @@ esp_aesctr_mature(struct secasvar *sav)
        algo = esp_algorithm_lookup(sav->alg_enc);
        if (!algo) {
                ipseclog((LOG_ERR,
-                   "esp_aeesctr_mature %s: unsupported algorithm.\n",
-                   algo->name));
+                   "esp_aeesctr_mature: unsupported algorithm %d\n",
+                   sav->alg_enc));
                return 1;
        }
 
index a26eb50..839293f 100644 (file)
@@ -403,7 +403,8 @@ esp_cbc_mature(struct secasvar *sav)
        algo = esp_algorithm_lookup(sav->alg_enc);
        if (!algo) {
                ipseclog((LOG_ERR,
-                   "esp_cbc_mature %s: unsupported algorithm.\n", algo->name));
+                   "esp_cbc_mature unsupported algorithm %d\n",
+                   sav->alg_enc));
                return 1;
        }