Browse code

bug fix.

Jan Janak authored on 27/03/2003 20:45:40
Showing 2 changed files
... ...
@@ -97,7 +97,6 @@ int parse_rr(struct hdr_field* _h)
97 97
 			}
98 98
 
99 99
 			     /* Copy hooks */
100
-			r->lr = hooks.rr.lr;
101 100
 			r->r2 = hooks.rr.r2;
102 101
 
103 102
 			if (s.len == 0) goto ok;
... ...
@@ -125,6 +124,7 @@ int parse_rr(struct hdr_field* _h)
125 125
 	return -1;
126 126
 
127 127
  ok:
128
+	if (!_h->parsed) (rr_t*)_h->parsed = r;
128 129
 	if (last) last->next = r;
129 130
 	return 0;
130 131
 }
... ...
@@ -161,7 +161,6 @@ void print_rr(rr_t* _r)
161 161
 	while(ptr) {
162 162
 		printf("---RR---\n");
163 163
 		print_nameaddr(&ptr->nameaddr);
164
-		printf("lr : %p\n", ptr->lr);
165 164
 		printf("r2 : %p\n", ptr->r2);
166 165
 		if (ptr->params) {
167 166
 			print_params(ptr->params);
... ...
@@ -42,7 +42,6 @@
42 42
  */
43 43
 typedef struct rr {
44 44
 	name_addr_t nameaddr; /* Name-addr part */
45
-	param_t* lr;          /* Hook to lr parameter */
46 45
 	param_t* r2;          /* Hook to r2 parameter */
47 46
 	param_t* params;      /* Linked list of other parameters */
48 47
         struct rr* next;      /* Next RR in the list */