Fixes to bugs discovered during initial tidc/radius integration.
[trust_router.git] / common / tr_dh.c
index 6bda6ee..3c0d78b 100644 (file)
@@ -170,7 +170,7 @@ int tr_compute_dh_key(unsigned char **pbuf,
   unsigned char *buf = NULL;;
   int rc = 0;
   
-  if ((!buf) || 
+  if ((!pbuf) || 
       (!pub_key) || 
       (!priv_dh)) {
     fprintf(stderr, "tr_compute_dh_key(): Invalid parameters.\n");